Order unprocessed envelopes by receivedAtCounter

This commit is contained in:
Fedor Indutny 2022-06-10 09:09:21 -07:00 committed by GitHub
parent 924c271b13
commit 6aeddb9301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 14 deletions

View file

@ -2287,9 +2287,9 @@ describe('SQL migrations test', () => {
});
});
describe('updateToSchemaVersion59', () => {
describe('updateToSchemaVersion60', () => {
it('updates index to make query efficient', () => {
updateToVersion(47);
updateToVersion(60);
const items = db
.prepare(
@ -2320,7 +2320,9 @@ describe('SQL migrations test', () => {
assert.notInclude(detail, 'SCAN');
assert.include(
detail,
'SEARCH messages USING INDEX expiring_message_by_conversation_and_received_at (expirationStartTimestamp=? AND expireTimer>?)'
'SEARCH messages USING INDEX ' +
'expiring_message_by_conversation_and_received_at ' +
'(conversationId=? AND storyId=?)'
);
});
});