Skip to content

Commit

Permalink
object/searchv2: Decode requested cursor and prepare the BoltDB one once
Browse files Browse the repository at this point in the history
Previously, meta bucket initial seek key and key space prefix was
calculated inside the metabase `Search` method (BoltDB transaction to be
more precise). Since seek key and prefix are globally calculated from
the query and do not depend on a specific metabase, this incurred
resource costs.

This changes `ObjectService.SearchV2` server to:
 1. verify requested cursor before accessing storage components;
 2. calc meta bucket seek (init key, prefix) once.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
  • Loading branch information
cthulhu-rider committed Feb 24, 2025
1 parent d108484 commit 5e7ac68
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 267 deletions.
Loading

0 comments on commit 5e7ac68

Please sign in to comment.