I am trying to write many values into the create-io DB using a python script.
Since crate does not support an auto-incrementer for fiels like ID, I query the last ID and use (+1) for the next one.
However, when I send a "insert into..." command, the data is not written immediately. So even if I close the connection and call
select count(id) from mytable
I still receive the old id counter.
For now, I am forced to use
time.sleep(0.5)
after each insert, which is "not good" .
Can someone guide me here into a direction?
Thanks alot!