One query - many TCP packets
Posted: Fri 12 Jul 2013 09:56
Hi,
I'm using EF4 with dotConnect for Oracle (7.7.267.0) and I experience low performance with queries resulting many objects.
If I debug my code the ToArray call on my query executes longer than 5 minutes when the result is around 5000 objects.
I've checked the db activity with dbMonitor and it shows that the query prepare and execute times are less than 1 sec (although this duration times don't look realistic).
When I run the same query in SQL developer (also from remote computer) it also execute in less than 10 seconds.
I've checked the network activity with a network analyzer and it shown that there are 2-3 times more TCP packets during this query execution than the number of resulting rows.
For me it looks like the cause of the low performance is the big network overhead of around 15000 network packets.
Is this normal? Can I change this behaviour somehow?
Any ideas in which direction should I proceed with the investigation?
Thx in advance!
I'm using EF4 with dotConnect for Oracle (7.7.267.0) and I experience low performance with queries resulting many objects.
If I debug my code the ToArray call on my query executes longer than 5 minutes when the result is around 5000 objects.
I've checked the db activity with dbMonitor and it shows that the query prepare and execute times are less than 1 sec (although this duration times don't look realistic).
When I run the same query in SQL developer (also from remote computer) it also execute in less than 10 seconds.
I've checked the network activity with a network analyzer and it shown that there are 2-3 times more TCP packets during this query execution than the number of resulting rows.
For me it looks like the cause of the low performance is the big network overhead of around 15000 network packets.
Is this normal? Can I change this behaviour somehow?
Any ideas in which direction should I proceed with the investigation?
Thx in advance!