val id = con.create()
con.set("persistence_id", Tag.create(message.persistenceId), id)
con.set("sequence", message.sequenceNr, id)
val b64 = Base64.getEncoder.encodeToString(bytes)
con.set("payload", b64, id)
I guess there is another place I do a write where I delete a range of records. So yes, I do a range query (criteria using BETWEEN operator) on sequence (Long) and delete all of the matching records (using clear(id)). I don't think the delete part is called at all in the test. It's just writing a reading a lot of stuff.
The other place I do a read is not a range query but strictly a read to find certain sequence numbers and play them back.
Curtis