yezhizi opened a new pull request, #3107:
URL: https://github.com/apache/kvrocks/pull/3107

   In this PR, only data writing in timestamp order is supported, as the 
dynamic `split` logic(as mentioned in 
https://github.com/apache/kvrocks/discussions/3044#discussioncomment-13728330) 
has not been implemented yet. This will be improved in upcoming PRs.
   
   Now, we can do something like this:
   ```
   127.0.0.1:6666> ts.create test2 CHUNK_SIZE 3 RETENTION 10
   OK
   127.0.0.1:6666> ts.madd test2 1 10 test2 3 10 test2 2 20 test2 3 20 test2 4 
20 test2 13 20 test2 1 20 test2 14 20
   1) (integer) 1
   2) (integer) 3
   3) (integer) 2
   4) (error) ERR Error at upsert, update is not supported when 
DUPLICATE_POLICY is set to BLOCK mode
   5) (integer) 4
   6) (integer) 13
   7) (error) ERR Timestamp is older than retention
   8) (integer) 14
   127.0.0.1:6666> ts.add test2 11 10 # ts=11 is out of order, which is not 
suppoeted now
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to