Hi Isomorphic,
we just realized we have a big problem with long running Batch Uploader uploads.
For uploads on the client I do see a Queue (for button "Commit", Button "Upload" is working fine and read-only). On the server this queue is worked in a single transaction.
The problem here is that the INSERTs in this single transaction block the system for other users (many tables and indexes) involved. As we don't have a schema for every customer, this even blocks other customers.
I do see a few possible mitigations and fixes here:
Thank you & Best regards
Blama
we just realized we have a big problem with long running Batch Uploader uploads.
For uploads on the client I do see a Queue (for button "Commit", Button "Upload" is working fine and read-only). On the server this queue is worked in a single transaction.
The problem here is that the INSERTs in this single transaction block the system for other users (many tables and indexes) involved. As we don't have a schema for every customer, this even blocks other customers.
I do see a few possible mitigations and fixes here:
- Split schema per customer - something we want to do soon. This will make the blocking only affect the current customer.
- Commit after every row of the BatchUploader-Queue. IMHO we'll be able (did not investigate yet) to do this, as we have access to the transaction inside the Add-DMI via the rpcManager.
Thank you & Best regards
Blama
Comment