-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintain sorted operation indexes (#438)
* Introduce sorted_index column to operations_v1 table * Iterate over sorted operations in reduce task * Update operation sorted index when reducing documents * Order operations by their index when topological sorted in SQL queries * Test for reduce task updating operation sorted index * Remove unused import * Make clippy happy * Doc strings * Add insert_operation_with_index method to store * Operation sorted index starts from 0 * Make sorted_index an INT * Include missed change in utils * Add sorted_index to StorageOperation * TaskInput is now an enum * fmt * Make insert_operation_with_index private * Update doc strings * Update CHANGELOG * fmt * Simplify doc-string * Update doc-strings --------- Co-authored-by: adz <x12@adz.garden>
- Loading branch information
1 parent
11a884c
commit 17a1096
Showing
7 changed files
with
370 additions
and
148 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
ALTER TABLE operations_v1 ADD COLUMN sorted_index INT; |
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
Oops, something went wrong.