First fix your select performance then do insert.
Did you checked how long this select is run without putting it into INSERT INTO ?
For plain table with 20 columns i have 100k rows per sec inserted.
So 10 million witll take only ~~1,5 minute.
But it is table with 2 indexes only and non triggers.
You have more options. Add to this select simple SELECT FIRST 10000 SKIP XXX statement and then split it into multiple inserts and do commit per part.
To catch conflicts maybe better is MERGE statement not INSERT INTO?
regards,
Karol Bieniaszewski
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/384de286-1557-478f-924d-64b5d591a8e8n%40googlegroups.com.
This is what for OP ask 😉 to commit per some part.
But first he must check if the SELECT itself is not bottleneck.
If SELECT is, then things will be slower x times
regards,
Karol Bieniaszewski
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/ec655329-8703-1b9f-2703-1886c577f8f7%40ibphoenix.com.