-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
nucliadb/migrations/0008_cleanup_leftover_rollover_metadata.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (C) 2021 Bosutech XXI S.L. | ||
# | ||
# nucliadb is offered under the AGPL v3.0 and as commercial software. | ||
# For commercial licensing, contact us at [email protected]. | ||
# | ||
# AGPL: | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
"""Upgrade relations and texts indices to v2. | ||
This migration is leaning up leftover junk metadata from previous rollover migration from all KB shards objects. | ||
""" | ||
|
||
from nucliadb.common.cluster.rollover import clean_rollover_status | ||
from nucliadb.migrator.context import ExecutionContext | ||
|
||
|
||
async def migrate(context: ExecutionContext) -> None: | ||
... | ||
|
||
|
||
async def migrate_kb(context: ExecutionContext, kbid: str) -> None: | ||
await clean_rollover_status(context, kbid) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
581bd2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error
12526.610364950724
iter/sec (stddev: 3.3149270587378424e-7
)12745.686329086004
iter/sec (stddev: 1.7317806991721728e-7
)1.02
This comment was automatically generated by workflow using github-action-benchmark.
581bd2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error
12920.370493373328
iter/sec (stddev: 8.251918600293004e-7
)12745.686329086004
iter/sec (stddev: 1.7317806991721728e-7
)0.99
This comment was automatically generated by workflow using github-action-benchmark.
581bd2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error
12770.078458332577
iter/sec (stddev: 1.5589811858245177e-7
)12745.686329086004
iter/sec (stddev: 1.7317806991721728e-7
)1.00
This comment was automatically generated by workflow using github-action-benchmark.