loadgen icon indicating copy to clipboard operation
loadgen copied to clipboard

rand: option for using dynamic SQL instead of prepared statement

Open robert-s-lee opened this issue 8 years ago • 2 comments

prepared statement has limit of 64K parameters. Add an option for using dynamic SQL instead of prepared statement.

robert-s-lee avatar Oct 24 '17 20:10 robert-s-lee

What do you mean by dynamic SQL?

Also, using more than 64k parameters seems suspicious :) is it ever useful to have batches that large?

jordanlewis avatar Oct 24 '17 20:10 jordanlewis

Instead of using prepared statement, issue insert into x values (1,2,3),(4,5,6)…. If the throughput continues to get better beyond 64K parameters, then this would be a viable way for bulk operation.

On Oct 24, 2017, at 4:37 PM, Jordan Lewis [email protected] wrote:

What do you mean by dynamic SQL?

Also, using more than 64k parameters seems suspicious :) is it ever useful to have batches that large?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cockroachdb/loadgen/issues/90#issuecomment-339123374, or mute the thread https://github.com/notifications/unsubscribe-auth/AGBcdExWvgU-eS-n5mggOmPi3fHZ34Y4ks5svkqQgaJpZM4QFCae.

robert-s-lee avatar Oct 24 '17 20:10 robert-s-lee