Improve metadata storage performance #699

Merged
merged 2 commits into from Mar 23, 2016

Projects

None yet

3 participants

@cannium
Contributor
cannium commented Feb 14, 2016
  • Remove an extra getFromStorage call.
  • Check metadata existence by get instead of atomicIncrement

Also, these options are orthogonal now:

tsd.core.meta.enable_tsuid_tracking
tsd.core.meta.enable_tsuid_incrementing
tsd.core.meta.enable_realtime_ts

Related to #681

cannium added some commits Feb 3, 2016
@cannium cannium Remove extra getFromStorage 5df8489
@cannium cannium Create TSMeta by get then put
If enable_tsuid_incrementing is false and config.enable_realtime_ts
is true, TSMeta will be created through get, check and put, instead
of atomicIncrement and put.
ec39cb2
@johann8384 johann8384 added this to the v2.3.0 milestone Mar 19, 2016
@johann8384 johann8384 merged commit 931242b into OpenTSDB:master Mar 23, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment