From 2b1c6d9035d4d60f7482b9987241bea8e863e03e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 19 Sep 2023 20:09:40 +0200 Subject: [PATCH] cherry pick change with index for reference ballot --- CHANGELOG.md | 9 +++++++++ sql/migrations/{0003_next.sql => 0003_activesets.sql} | 0 sql/migrations/0004_ballots_index.sql | 1 + 3 files changed, 10 insertions(+) rename sql/migrations/{0003_next.sql => 0003_activesets.sql} (100%) create mode 100644 sql/migrations/0004_ballots_index.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 197f918746..3197620043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ See [RELEASE](./RELEASE.md) for workflow instructions. +## v1.1.7 + +### Improvements + +- [#5038](https://github.com/spacemeshos/go-spacemesh/pull/5038) add index for faster query to refballot + +there was a regression in proposal builder that started to use codepath that was used in different domain, which was executed once per runtime. now this is executed on every proposal creation and might be too slow. + + ## v1.1.6 ### Upgrade information diff --git a/sql/migrations/0003_next.sql b/sql/migrations/0003_activesets.sql similarity index 100% rename from sql/migrations/0003_next.sql rename to sql/migrations/0003_activesets.sql diff --git a/sql/migrations/0004_ballots_index.sql b/sql/migrations/0004_ballots_index.sql new file mode 100644 index 0000000000..ec8388a41f --- /dev/null +++ b/sql/migrations/0004_ballots_index.sql @@ -0,0 +1 @@ +CREATE INDEX ballots_by_atx_by_layer ON ballots (atx, layer asc);