hi,

why dont you check the performance of your code against the built-in min function of SQL and see the differences?

in general to answer your question, if your system has "cold" memory, it will read the bat from disk, after that it will have warm memory and should find everything in memory unless th column is to big to fit in memory. iostat is your friend here.

On Sun, Dec 2, 2012 at 11:40 AM, Martin Kersten <Martin.Kersten@cwi.nl> wrote:
Hi,

Good to hear that you have fun in diving into a very large code base.


On 12/2/12 10:35 AM, swapnil joshi wrote:
Hi

         I have done some fun with Monetdb. i have created my own user
define xmin function.
objective of that function is find minimum value from specific column.

I have writen some code as follow :
...

  //*************************************************************************************************/

when i am executing following SQL statement then it will give result but
it takes 10 to 13 seconds
I know where i am executing on single core of CPU but when i executing
that above statement
then, I think it will taking data from disk because disk access
indicator led blow when i executing
that above SQL statement. means, It was not using system main memory.

I will be wrong.

Can each time it is accessing BAT from disk or from main memory?
All disk IO is transparently handled by the OS, i.e. see memorymapped
file semantics. IO can be triggered both by MonetDB or indirectly
by other programs competing with your memory resources, e.g.
webbrowsers with heavy Flash scripts.
A first impression of the numbers indicate this might be the case.


Can you test me Program ?
We don't have the time/resources to test third party experimental code,
which does not lead to major functional/bugfix/performance improvements
of the MonetDB source code.

regards, Martin


--
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