generated from Ed-Fi-Exchange-OSS/Template-for-GitHub
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RND-644] - Investigate alternatives to MongoDB backend read-for-writ…
…e-locking (#304) * Investigate alternatives to MongoDB backend read-for-write-locking * Delete from concurrences collection * Some fixes. * Trying to fix tests. * Adds locking update test * Some changes on repo files and its tests. * Changes on locking tests. * Removes unnecesary comments. * Removes unnecesary comments. locking tests * Some documentation. * Trying to fix table. * Removing unnecessary code. * Documentation organization. * [RND-644] some locking updates * Adds session. Centralize catch. * Deletes unnecessary removeDocumentLocks function * Adds test for repository/DB * More tests on repository/Db * Keeping just DocumentUuid in ConcurrencyDocument * Documentation - Raw data - Materialized conflict approach. * Summarize documentation. * Removes unnecessary ANDs * Updating documentation based on the latest changes and the new performance test results. * Fixing filenames with typos and typo on md file. * Small changes on locking tests. --------- Co-authored-by: Brad Banister <[email protected]>
- Loading branch information
1 parent
c4b69e4
commit 5d07e64
Showing
35 changed files
with
2,516 additions
and
78 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
Meadowlark-js/backends/meadowlark-mongodb-backend/src/model/ConcurrencyDocument.ts
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,11 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Licensed to the Ed-Fi Alliance under one or more agreements. | ||
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
// See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
import { DocumentUuid } from '@edfi/meadowlark-core'; | ||
|
||
// By having a unique DocumentUuid at a given time, we handle concurrency. | ||
export interface ConcurrencyDocument { | ||
_id: DocumentUuid; | ||
} |
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
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.