Hi,
I am writing an web app, that once in a while consumes some large xml files in order to update it's database. A typical scenario is that user uploads a 10-mb file, and around 3000 insertions/updates take place. Now they are being called from snippet code, which is probably bad.
This happens to timeout ajaxCall, and I receive "java.lang.RuntimeException: Exception while executing statement : FATAL: terminating connection due to administrator command" from PostgreSQL. I am not sure if it's because of timeout, or whether my provider does not like such peaks. In the latter case I should probably also schelude breaks between batches of insertions.
I know I should probably rewrite the method to "Comet", but I never used it and I don't know how. Can anyone point me to a tutorial method => background method?
Kindest Regards
Andrzej Skalski