influxdb/models
Jason Wilder a8d9eeef36 Reduce lock contention when deleting high cardinality series
Deleting high cardinality series could take a very long time, cause
write timeouts as well as dead lock the process.  This fixes these
issue to by changing the approach for cleaning up the indexes and
reducing lock contention.

The prior approach delete each series and updated every index (inmem)
during the delete.  This was very slow and cause the index to be locked
while it items in a slice were removed one by one.  This has been changed
to mark series as deleted and then rebuild the index asynchronously which
speeds up the process.

There was also a dead lock that could occur when deleing the field set.
Deleting the field set held a write lock and the function it invoked under
the lock could try to take a read lock on the field set.  This would then
deadlock.  This approach was also very slow and caused time out for writes.
It now uses faster approach that checks for the existing of the measurment
in the cache and filestore which does not take write locks.
2017-09-07 11:36:02 -06:00
..
consistency.go Update godoc for package models 2016-12-30 18:02:52 -08:00
inline_fnv.go Update godoc for package models 2016-12-30 18:02:52 -08:00
inline_fnv_test.go Implement and use zero-alloc FNV64a. 2016-09-26 11:43:27 -07:00
inline_strconv_parse.go Taught tsm1 storage engine how to read and write uint64 values 2017-07-24 09:03:22 -07:00
inline_strconv_parse_test.go models: Add FieldIterator type 2016-10-03 16:30:21 -06:00
points.go Reduce lock contention when deleting high cardinality series 2017-09-07 11:36:02 -06:00
points_internal_test.go Add test for marshalling a point without fields 2016-12-28 12:09:30 -08:00
points_test.go initial fga work 2017-05-26 13:16:27 -07:00
rows.go Update godoc for package models 2016-12-30 18:02:52 -08:00
statistic.go Update godoc for package models 2016-12-30 18:02:52 -08:00
statistic_test.go Ensure we don't mutate provided statistics tags 2016-08-24 11:40:13 +01:00
time.go Support negative timestamps in the query engine 2016-08-25 12:52:41 -05:00