NSLS-II / metadatastore

DEPRECATED: Incorporated into https://github.com/NSLS-II/databroker
Other
2 stars 11 forks source link

Add time indexes for descriptor and event #219

Closed danielballan closed 8 years ago

danielballan commented 8 years ago

Mongo raises an error on find_descriptors() because, although we have a joint index of run_start and time, we don't have one just one time. This seems like a safe and useful thing to add.

Also, the migration verification script revealed we were still missing some sorts in core_v0, which is here remedied.

danielballan commented 8 years ago

OK, after quick discussion with @arkilic, this PR has been changed. No new indexes are being added to event. The important thing is that all the sorting imposed by our built-in queries has a matching index.