mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
perf(threads): Add an index specifically for the "starred" view
This commit is contained in:
parent
57cfd07bbe
commit
90336f4f1f
|
@ -100,7 +100,8 @@ class Thread extends Model
|
||||||
|
|
||||||
@additionalSQLiteConfig:
|
@additionalSQLiteConfig:
|
||||||
setup: ->
|
setup: ->
|
||||||
['CREATE INDEX IF NOT EXISTS ThreadListIndex ON Thread(last_message_received_timestamp DESC, id)']
|
['CREATE INDEX IF NOT EXISTS ThreadListIndex ON Thread(last_message_received_timestamp DESC, id)',
|
||||||
|
'CREATE INDEX IF NOT EXISTS ThreadStarIndex ON Thread(account_id, starred)']
|
||||||
|
|
||||||
fromJSON: (json) ->
|
fromJSON: (json) ->
|
||||||
super(json)
|
super(json)
|
||||||
|
|
Loading…
Reference in a new issue