Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDon't do the same fingerprint->metric lookups from disk multiple times per query #292
Comments
ghost
assigned
juliusv
Jun 11, 2013
This comment has been minimized.
This comment has been minimized.
|
Did some timing on a query which reported 15s spent in |
This comment has been minimized.
This comment has been minimized.
|
So it turns out that doing
Proposal: when memory lookups for |
This comment has been minimized.
This comment has been minimized.
|
The latter proposal sounds fine.
|
This comment has been minimized.
This comment has been minimized.
|
Hmm... the memory series storage is not super ideal just to cache metric fingerprints, but it'll do for now. For each empty timeseries that we put into it just for fp->metric lookups, we also need to store the indexes pointing at it, even if that TS is never written to again (but just in case). All the more reason to expunge unused timeseries upon flush to disk. |
This comment has been minimized.
This comment has been minimized.
|
Done in 71199e2 |
juliusv
closed this
Jun 28, 2013
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 25, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
juliusv commentedJun 11, 2013
Now that view queue wait times and disk extraction are optimized, getting values from the built memory view is increasingly becoming a bottleneck. Profile this and consider creating reusable array iterators for memory series instead of doing binary search on the whole series array for every point. (since we're usually stepping through linearly in queries)