dss icon indicating copy to clipboard operation
dss copied to clipboard

Fix database indices

Open BenjaminPelletier opened this issue 3 years ago • 0 comments

Currently, the indices we are using for many of our CockroachDB database tables are suboptimal; we should update our indices to optimize performance, storage, and probability of success.

Some indices are not used in any queries. Only one index is used when SELECTing data, but sometimes we have indices on each of the columns used in the WHERE clause. It is an anti-pattern to have an index on a sequential key like timestamps.

It is likely this will improve #742

BenjaminPelletier avatar Sep 20 '22 23:09 BenjaminPelletier