Open jctrouble opened 3 months ago
Lots of contention too:
Thank you @jctrouble for opening this issue and the detailed analysis. The fix you referenced has been released as part of version 22.2.0. We are planning to upgrade to 24.1.3 shortly.
Upgrade of CockroachDB to 24.1.3 addressed in #1075 and released as part of v0.17.0-rc1. See MIGRATION.md for upgrade instructions. ~Please feel free to reopen this issue if you think additional work is required.~ @jctrouble May I kindly ask you to confirm that the upgrade solves the issue ?
There is some high latency (700+ms) when querying SCD subscriptions for updates.
This query (source):
triggers a full table scan (analysis bundle):
Index support for the
&&
operator wasn't added until Apr 9, 2022, but the current deployed CRDB version (v21.2.7
) is from March 14, 2022.In order to effectively perform these queries and use the inverted index
scd_subscriptions@cell_idx
, we need to update the CRDB version.