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

SearchV2 #314

Merged
merged 4 commits into from
Dec 24, 2024
Merged

SearchV2 #314

merged 4 commits into from
Dec 24, 2024

Conversation

roman-khimov
Copy link
Member

No description provided.

Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good in total

@roman-khimov roman-khimov marked this pull request as draft December 23, 2024 15:20
@roman-khimov roman-khimov marked this pull request as ready for review December 23, 2024 15:44
cthulhu-rider
cthulhu-rider previously approved these changes Dec 23, 2024
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core commit is well, did not see others

1. Additional fields allow to avoid HEADs in most cases since applications
   tend to use 1-2 fields to choose between results/check for flags and pick
   the object they want to GET. Or they just want to have some fields to
   display object list, but they don't need a full HEAD.
2. Sorting is critical here, absent sorting we can't limit reply in number of
   elements returned and we can't have cursors to continue search.
3. Limits on number of returned elements allow to use single message instead
   of a stream. 4M of the default message fits 256 full-sized 16K headers and
   we expect just a few attributes in fact, so 1000 elements shouldn't be a
   problem.
4. We can't go backwards with the order easily, so this is omitted for now.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
No functional changes.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov merged commit d5777f8 into master Dec 24, 2024
2 of 3 checks passed
@roman-khimov roman-khimov deleted the searchv2 branch December 24, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants