techfromsage / tripod-php

Object Graph Mapper for managing RDF data in Mongo
MIT License
29 stars 4 forks source link

Move index creation into a background job #113

Closed kiyanwang closed 7 years ago

kiyanwang commented 8 years ago

At the moment we create indexes for CBD, tables, views and search documents every time we insert a new document into the relevant collections. this is both inefficient and leads to inconsistency.

We need to remove the code that is doing this from within each of the delegates and refactor that into a background resque job that can be scheduled to run as (in)frequently as needed