-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90% Introduced resque worker to create all indexes (#114)
* New resque worker created - added constants for resque job ensureIndexes now creates all required indexes IndexUtils->ensureIndexes has been updated - this method now ensures ALL tripod required indexes for Tables - this method now ensures ALL tripod required indexes for Views - this method now ensures ALL tripod required indexes for Search Docs Removed hardcoded index creation from delegates on every insert/update of a composite we were ensuring a set of hardcoded indexes, in addition to ensuring ALL indexes specified in the compose spec i.e. in the View/Table/SearchDoc Specification. All of this code has been removed, in favor of a more coherent approach via background jobs facilitated by the IndexUtils->ensureIndexes method. removed redundant tests from MongoTripodTablesTest - these tests contained expectations around calls to the Tables->ensureIndex method which now, no longer exists. Also added tests for IndexUtils which previously had no test coverage. This class does the actual work now around creating indexes * adds createJob method to EnsureIndexes job + tests * p/r feedback * fixed typo * renamed helper method to createMockJob * addressed all p/r feedback * ensureindexes cli script now schedules jobs * added docblock * added debug to ensureindexes job
- Loading branch information
Showing
14 changed files
with
1,146 additions
and
236 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
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.