The inmem index would call CreateSeriesIfNotExist for each series which takes and releases and RLock to see if a series exists. Under high write load, the lock shows up in profiles quite a bit. This adds a filtering step that obtains a single RLock and checks all the series and returns the non-existent series to contine though the slow path. |
||
---|---|---|
.. | ||
inmem | ||
internal | ||
tsi1 | ||
index.go |