ghdsjkf
ghdsjkf

Reputation: 13

How can I bulk load data in redis timeseries DB?

I was trying to insert 1M entries in redis timeseries DB (on my local machine). For this, I was using add(sourceKey, timestamp, value) method of RedisTimeSeries on every entry.

Wanted to know if there's a better way to do this and if bulk load is possible in redis timeseries.

Couldn't find a method for bulk loading of data in this doc: https://oss.redis.com/redistimeseries/commands/#tsadd

Thanks

Upvotes: 1

Views: 922

Answers (1)

Pieter Cailliau
Pieter Cailliau

Reputation: 509

Currently, the fastest way is to combine pipelining and the TS.MADD command

Upvotes: 3

Related Questions