T
TypeDB16mo ago
graphioli

1 MB inserts

can I dm you?
8 Replies
krishnan
krishnan16mo ago
It looks like we have a client side limitation of 1MB per query. (We may also have it on the server side) Can you just modify your generator to keep the sizes a little below the 1MB (1000000 bytes) size?
graphioli
graphioliOP16mo ago
yes will do, can I then create a script with reference to all 2000 insert tqls and one commit at the end or should I consider batching them?
krishnan
krishnan16mo ago
What kind of script is this? One for typedb-console? Either way, It should be fine. As long as a single insert is below 1MB you won't hit the empty transaction error.
graphioli
graphioliOP16mo ago
yep for console
krishnan
krishnan16mo ago
Should you consider batching them? Only if you see issues with performance.
graphioli
graphioliOP16mo ago
ok cool will try it, thanks alot!
krishnan
krishnan16mo ago
Ah so you'll have a 2GB commit then. Commit changes are buffered in memory, so that might be a bit on the larger side depending on how much memory the machine has. You can try it. If you don't mind batching, it's always safer to do some batching.
graphioli
graphioliOP16mo ago
ok 👍

Did you find this page helpful?