0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 16:49:47 +00:00
libsql/libsql-storage
Avinash Sajjanshetty f563a741ca
Improve local cache and prefer local reads (#1545)
* update WIP list

* prefer local max_frame_no

this assumes that cache is always up to date and uses that instead
of calling the storage server. later we will add replication and make
sure that cache is upto date.

* Prefer local reads and also save page versions locally

Let's store `page_no` along with the `frame_no`. And then while reading,
we will do a range read, read frame which is less than txn's
`max_frame_no`

* minor improvements: index creation, fix max_frame_num query

* update local cache on inserts

* avoid unnecessary call to ss in `find_frame`

* remove unused `get_frame`

* eliminiate all calls to storage server during read path
2024-07-12 06:39:37 +00:00
..