Upgrade status-go to improve indexing performance.

The index for message was fairly inefficient as it was only using the
cursor, as it was referring to the old chat_id field.

This meant that newer messages would be fetched much faster then older
messages.

The index has been changed so that now it includes local_chat_id
(which is currently used for filtering), and not using hide.

The reason being is that hide is a low cardinality index, so there's
no performance benefit to have it in, also it's mostly ignored by the
query planner.

https://github.com/status-im/status-go/pull/1986
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2020-06-04 12:15:26 +02:00
parent d0256d637a
commit 723975d2c9
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
"owner": "status-im",
"repo": "status-go",
"version": "v0.54.0",
"commit-sha1": "0bffeab9088b20aca046673d77b9a86d1889decb",
"src-sha256": "07rly3rlkx7h79ccdc51ji8f4hy3y461scj4slfw8xkbcn80hcb1"
"version": "v0.54.1",
"commit-sha1": "20f45a7c1caa25a30853480ac47177b534536f26",
"src-sha256": "1hsjsv00dlbjp4nqnifymldr8v20arzv07l9l27jarq9dk00wbia"
}