KamoCRM

Index member_notifications by (source_type, source_id) for withdrawal across members (IoT close-out F15)

Performancekamo-shared-library
Shipped
October 19, 2026 at 4:03 AM UTC
Author
Kamo
Commit
85805f2

The withdraw-by-source read (findBySourceTypeAndSourceId) and the IoT alarm's withdraw-by-prefix (StartingWith -> LIKE 'x%') had only the member-led index, so both read the table. Range-sharded ASC, ASC so a prefix is a range scan on YugabyteDB (collation C). Hand-applied 2026-10-19 03:43 UTC (valid + ready); EXPLAIN shows an Index Scan for both shapes.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing