-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(db): automatically retry txns on deadlocks
This commit implements automatic retrying of transactions when a transaction deadlock occurs. This allows the server to handle up to 20 simultaneous patient registrations! The integration tests have been updated accordingly to stress the server. The number of retries is currently 3, but is configurable via the MAX_TRANSACTION_DEADLOCK_RESTARTS constant in the transaction library. Closes #620.
- Loading branch information
Jonathan Niles
committed
Aug 4, 2016
1 parent
f1d629c
commit 351e331
Showing
5 changed files
with
33 additions
and
4 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
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 |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
* | ||
* @module lib/renderers/json | ||
*/ | ||
'use strict'; | ||
|
||
var q = require('q'); | ||
|
||
exports.render = renderJSON; | ||
|
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