--query-time

0 views
Skip to first unread message

leonhard...@googlemail.com

unread,
Jun 11, 2009, 3:40:41 AM6/11/09
to OpenAnzo
Hello Openanzo Team,

you have this nice function created called "--query-time".

When i start the Anzo Server and open the CLI i tested it with my
queries.

Does the time i get back includes: open the connection, execute query,
get, back results, close connection??

Or only the time it took the query to be executed on the server?


Leo

Jordi Albornoz Mulligan

unread,
Jun 11, 2009, 9:38:23 AM6/11/09
to open...@googlegroups.com

Hello Leo,

Informally, the --query-time option includes:
- time spent preparing the query message
- time spent sending the query message to the server and its transit
time over the network.
- time for the server to process and execute the query
- time for the response to reach the client
- time spent parsing the response by the client

It does NOT include things like:
- time spent initiating a connection to the server and authenticating
- time spent rendering the result to a file or the console

For more detail you can see the implementation of the --query-time flag at:
http://www.openanzo.org/projects/openanzo/browser/openanzo/trunk/org.openanzo.client/src/main/java/org/openanzo/client/cli/QueryCommand.java#L268

--
Jordi Albornoz Mulligan
Founding Engineer - Cambridge Semantics
jo...@cambridgesemantics.com
(617) 401-7321

Reply all
Reply to author
Forward
0 new messages