Garrett Bischof

Results 29 comments of Garrett Bischof

In databroker-intake the event.data.time overrides event.time

Are you sure that we need these indexes? Adding more indexes will increase insert time because a sorted index has log(n) insert time. The `{"time": -1, "_id": 1}` index seems...

Why don't we use `_id` for time searches?

`collection.find({'_id': {'$lt': ObjectId.from_datetime(datetime_end), '$gt': ObjectId.from_datetime(datetime_start)}})`

This is interesting https://www.mongodb.com/docs/manual/core/index-creation/#index-builds-on-populated-collections

I have been using it, and it works well

okay, makes sense. So which indexes do we need to add `{"_id": 1}` to?

ohh, I was a little confused by the first post that said all indexes.

Do we need to add this one? ``` self._run_start_collection.create_index('scan_id', unique=False) ```

I like this idea! Could we take a minute to brainstorm names for the new header document type?