Commit f27568a
committed
Collaboration: Add composite index for awareness room+created_at query
The awareness SELECT filters on WHERE room = %s AND created_at >= %s.
The existing UNIQUE KEY room_client covers room but not created_at,
requiring a row filter after the index lookup.
Adds KEY room_created_at (room, created_at) so both conditions are
satisfied directly from the index. The existing KEY created_at is
retained for cron cleanup queries that filter on created_at alone.
Bumps db_version to 61835.1 parent 0d77c08 commit f27568a
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments