mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-07 20:42:44 -04:00
Use partial indices on SQLIte. (#13802)
Partial indices have been supported since SQLite 3.8, but Synapse now requires >= 3.27, so we can enable support for them. This requires rebuilding previous indices which were partial on PostgreSQL, but not on SQLite.
This commit is contained in:
parent
6302753012
commit
f2d12ccabe
4 changed files with 59 additions and 5 deletions
|
@ -1255,7 +1255,6 @@ class EventPushActionsStore(EventPushActionsWorkerStore):
|
|||
table="event_push_actions",
|
||||
columns=["highlight", "stream_ordering"],
|
||||
where_clause="highlight=0",
|
||||
psql_only=True,
|
||||
)
|
||||
|
||||
async def get_push_actions_for_user(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue