damus-io / nostrdb

The unfairly fast embedded nostr database backed by lmdb
Other
87 stars 15 forks source link

Clustered created_at indices #6

Closed jb55 closed 11 months ago

jb55 commented 11 months ago

For efficient since/until scans

LMDB stores keys in an ordered fashion, so if we cluster keys like and then we can do quick lookups by date and id.

jb55 commented 11 months ago

should be done now (this is the tsid thing)