Hi all,
we have some performance problems with our Servoy system and are trying to track down the causes. We use databaseManager.getDataSetByQuery(some_query,some_array_of_arguments) a lot.
SELECT COALESCE(to_char(document_number,'99999999'),'n/a') || ' ' || to_char(document_date,'dd/MM/YY') || ' ' || COALESCE(document_customer_acc_no,'') || ' ' || COALESCE(document_customer_name,''), document_id FROM acc_documents WHERE document_number = ? OR document_customer_acc_no = ? ORDER BY document_date DESC OFFSET ? LIMIT 26
This one takes about 8 seconds on average according to ‘Performance Data’ in Servoy Admin. However, when I run the same Query in PGAdmin, it takes 100ms or less.
Any ideas of what may be going on?
Port used by RMI Registry: 1099
Uptime: 40 days 20 hours 55 minutes 58 seconds
JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=1.6.0_33
java.vm.info=mixed mode
java.vm.vendor=Apple Inc.
Operating System Information
os.name=Mac OS X
os.version=10.7.4
os.arch=x86_64
System Information
Heap Space Memory: allocated=984828K, used=576653K, max=1294336K
Non-Heap Space Memory: allocated=153732K, used=105591K, max=180224K