-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to rely on PostgresQL database
The underlying functionality is the same, but we are moving away from mongo to postgres to ensure we can continue to maintain the app. We no longer keep soft copies of the data read from the database, instead reading each row from memory. We no longer rely on comparing OpTime from Mongo changes, instead relying on PSQL's LISTEN/NOTIFY process to notify us of changes. However, in order to avoid overloading with constant update requests, we still poll the update every two seconds.
- Loading branch information
Showing
2 changed files
with
93 additions
and
115 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