performance of querry result

Questions and answers regarding general SQL and backend databases

performance of querry result

Postby shrisathe » Thu Jan 16, 2014 7:32 pm

I would like someone to compare performance of select / insert statement in servoy with native select / insert querry in sql serve 2008 database
shrisathe
 
Posts: 1
Joined: Thu Jan 16, 2014 7:26 pm

Re: performance of querry result

Postby ngervasi » Fri Jan 17, 2014 1:10 pm

What do you mean exactly with "native"? Servoy connects to the DB via JDBC, the workflow is this:
- client asks servoy server for data (client-server connection latency matters here)
- server picks up a connection from the connection pool
- server sends the query to the db via the connection (server-db connection latency matters here)
- server waits for the db to execute the query
- server gets the result back (server-db connection latency matters here)
- server sends the data back to the client (client-server connection latency matters here)

The keys for performance are:
- keep the servoy server as "close" as possible to the db server so that latency is minimal
- if you use smart client watch out for client-server latency
- try to reduce the number of queries sent to the db (one big query is faster than multiple small queries, due to latency)
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 8 guests