Skip to content

Conversation

@psarna
Copy link
Contributor

@psarna psarna commented Dec 1, 2023

This is a port of Marin's libsql/sqld#689

This PR replaces the namespace store dumb hashmap with an LRU cache to bound the maximum number of namespaces loaded into memory while unbounding the number of namespaces allocated on a sqld instance. Additionally, this enables fully concurrent access to namespaces by removing the global lock on the namespace store.

This is a port of Marin's libsql/sqld#689

This PR replaces the namespace store dumb hashmap with an LRU cache to bound
the maximum number of namespaces loaded into memory while unbounding the number
of namespaces allocated on a sqld instance.  Additionally, this enables fully
concurrent access to namespaces by removing the global lock on the namespace
store.

Co-authored-by: Piotr Sarna <sarna@turso.tech>
@psarna psarna requested a review from MarinPostma December 1, 2023 12:32
@psarna
Copy link
Contributor Author

psarna commented Dec 1, 2023

(I'll close and reopen from the original repo, not my fork)

@psarna psarna closed this Dec 1, 2023
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.

1 participant