readysettech / readyset

Readyset is a MySQL and Postgres wire-compatible caching layer that sits in front of existing databases to speed up queries and horizontally scale read throughput. Under the hood, ReadySet caches the results of cached select statements and incrementally updates these results over time as the underlying data changes.
https://readyset.io
Other
4.54k stars 125 forks source link

Remove the need of SELECT COUNT(*) during snapshot #1386

Open altmannmarcelo opened 1 month ago

altmannmarcelo commented 1 month ago

Description

Currently we do a full index scan to get the exact number of rows during MySQL snapshot. This is a costly operation for big tables. We should find a way to not require it.

Change in user-visible behavior

Requires documentation change