Re: Same SQL Statement with different throughput time.
I guess it's a good idea to run your query in both cases, slow & fast prefixed with TRACE to see where time is spent.
BTW, are we talking about genuine MonetDB (as Letters asked: which version) and hence original MonetDB SUM()-implementation, or has the code been modified or extended; f the latter: where & how?
S.
--
| Stefan.Manegold @ CWI.nl | DB Architectures (INS1) |
| http://CWI.nl/~manegold/ | Science Park 123 (L321) |
| Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
----- Reply message -----
From: "Lefteris"
I think the reason is that for the first query the time is spent mainly for loading your table in main memory. Then, the second query has only the overhead of computing the sum over column V1.
To see this, you can run the query, restart monetdbd, and then run the query again. You should get similar performance to that of the first run.
Babis
On Fri, Nov 30, 2012 at 1:29 PM, swapnil joshi
wrote: Hi Stefan, If monetdb doesn't maintain any caching then when i am creating test1 database which contain demo table which contain 100 million records.
When first time i am executing "SELECT SUM(V1) FROM DEMO;" monetdb gives me result in (11.4s) when immediate i am trying to execute same query "SELECT SUM(V1) FROM DEMO;" It gives me result in (31.065ms)
How / why this happen?
I have also checked my OS memory cache and I have erased OS Memory cache. Now, I am trying same query "SELECT SUM(V1) FROM DEMO;" now also he take same time in milliseconds approximate(30.723ms)
why he first time take lot of time and every next time he take negligible time.
I hope you will clear my problem related of throughput time.
-- Regards, Swapnil K. Joshi
_______________________________________________ users-list mailing list users-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/users-list
_______________________________________________ users-list mailing list users-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/users-list
_______________________________________________ users-list mailing list users-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/users-list
participants (1)
-
Stefan Manegold