Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 i/o estimation

Author  Topic 

KazaX
Starting Member

28 Posts

Posted - 2008-11-25 : 06:48:03
How can one estimate required i/o in blocks for block nested loop join and naive join?

if I have 10^6 records in table R that occupies 100mb
and 10^5 rec. in table S that occupies 200mb.
the blocks read from disk are 50kb.Cache holds six blocks, a 1-block input bu ffer for one table, a 4-block buff er for the
other, and a 1-block output bu ffer.

And perform below query.

SELECT R.A, S.C
FROM R, S
WHERE R.B = S.B

is there a formula ? or sth?

Really thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-11-25 : 06:51:04
It depends on a few things, such as present indexes, fragmentation and so on..



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

KazaX
Starting Member

28 Posts

Posted - 2008-12-02 : 03:22:02
quote:
Originally posted by Peso

It depends on a few things, such as present indexes, fragmentation and so on..



E 12°55'05.63"
N 56°04'39.26"




U think is that an answer to my question... :)
Go to Top of Page
   

- Advertisement -