logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

RE: Join order and access path: msg#00313

apache.db.derby.devel

Subject: RE: Join order and access path

Jeffrey Lichtman wrote:
> I would like to see hash tables that spill to disk.
Ideally, the hash
> table
> should be an in-memory structure with a conglomerate as a
backing store. I
> would want the backing store to be used only when
necessary - that is,
> only
> when the hash table grows too big. The biggest problem with
this idea is
> how to estimate the cost of building and maintaining the
table. One
> approach could be to put a limit on the number of in-memory
rows in the
> hash table and use a statistical formula for the cost of
reading a row,
> using the number of in-memory rows versus the total number
of rows to
> estimate the chances of finding a row in memory.
>
> Another approach could be to use weak references in
managing the hash
> table
> (a weak reference is a Java construct that allows the
garbage collector to
> nominate an object for garbage collection even when it has
a reference to
> it). Weak references are useful for memory caches that
adjust themselves
> to
> the memory available to the JVM. One of our original ideas
for Derby (nee
> Cloudscape) is that it should be a low-maintenance DBMS,
with little
> intervention required to keep a working system running. A
self-managing
> cache could help with this - it would adjust itself to
environments with
> different amounts of memory (although small-memory
environments could hurt
> performance). I don't know how the optimizer would estimate
the cost for
> building and maintaining a hash table in this case.

This is over a year and a half old, but on the old ldapd
project at source forge, we played with an adaptive cache,
sort of a hybrid mix between DBL and FRC caches. Check out
the doc. I believe the code implemented the S region, but not
the P (phantom). Well, here's the link:

http://cvs.sourceforge.net/viewcvs.py/ldapd/sandbox0/cache/



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo