tsbs
tsbs copied to clipboard
Support for MongoDB time-series collections
This adds support for MongoDB time-series collections, which are available starting in MongoDB 5.0. The changes include:
- Switch from mgo to the official MongoDB Go driver
- Add options to the MongoDB loader
- --url
- --document-per-event
- --timeseries-collection
- --retryable-writes
- --ordered-inserts
- --random-field-order
- Add option to query generator
- --mongo-use-naive
- Move measurement data to the top level of inserted objects
- Support queries using MongoDB naive data format
Hello @gregorynoma ! thanks for the PR and all improvements related to mongodb! would you mind fixing the mongo test errors for the broken build?
# github.com/timescale/tsbs/pkg/query [github.com/timescale/tsbs/pkg/query.test]
1440pkg/query/mongo_test.go:23:20: cannot use "github.com/globalsign/mgo/bson".M literal (type "github.com/globalsign/mgo/bson".M) as type primitive.M in append
1441FAIL github.com/timescale/tsbs/pkg/query [build failed]
1442? github.com/timescale/tsbs/pkg/query/config [no test files]
1443? github.com/timescale/tsbs/pkg/query/factories [no test files]
1444? github.com/timescale/tsbs/pkg/targets [no test files]
Hi @jonatas sorry about that, should be fixed now.
Hey @jonatas, I added those files you suggested as well as incorporated some additional changes we made since the original PR!
Thank you, @gregorynoma! I'll review it again!
Hi All, Any updates on this? Looking forward to the benchmark results!