Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the primary_key parameter of SecondaryIndex::GetSecondary{KeyPrefix,Value} #13207

Closed
wants to merge 1 commit into from

Conversation

ltamasi
Copy link
Contributor

@ltamasi ltamasi commented Dec 13, 2024

The patch tweaks the new SecondaryIndex interface a bit by removing the primary_key parameter of GetSecondaryKeyPrefix and GetSecondaryValue. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.

Differential Revision: D67184936

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67184936

@ltamasi ltamasi marked this pull request as draft December 13, 2024 05:56
@ltamasi ltamasi added the WIP Work in progress label Dec 13, 2024
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 13, 2024
Summary: Pull Request resolved: facebook#13207

Differential Revision: D67184936
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67184936

@wanghenshui
Copy link

great work!

ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 13, 2024
Summary: Pull Request resolved: facebook#13207

Differential Revision: D67184936
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67184936

ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 13, 2024
Summary: Pull Request resolved: facebook#13207

Differential Revision: D67184936
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67184936

…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67184936

@ltamasi ltamasi changed the title Support KNN searches for FAISS IVF indices Remove the primary_key parameter of SecondaryIndex::GetSecondary{KeyPrefix,Value} Dec 27, 2024
@ltamasi ltamasi removed the WIP Work in progress label Dec 27, 2024
@ltamasi ltamasi requested a review from jaykorean December 27, 2024 22:20
@ltamasi ltamasi marked this pull request as ready for review December 27, 2024 22:21
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.


Differential Revision: D67184936
ltamasi added a commit to ltamasi/rocksdb that referenced this pull request Dec 28, 2024
…refix,Value} (facebook#13207)

Summary:
The patch tweaks the new `SecondaryIndex` interface a bit by removing the `primary_key` parameter of `GetSecondaryKeyPrefix` and `GetSecondaryValue`. This parameter is currently unused by existing implementations and it actually does not make sense to have the secondary index prefix depend on the primary key since it would lead to potential chicken-and-egg problems at query time.

Pull Request resolved: facebook#13207

Differential Revision: D67184936
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3570e4f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants