actually, I made a TracerDirectory that shows for searching, it really makes
very few calls into the Directory. now I admit that running this test using
the demo.IndexFiles and demo.SearchIndex (or whatever it is) isn't
necessarily a true reflection of the IO of lucene in a real world situation,
but with a CachingDirectory similar to the TracingDirectory snippet below, I
think you could get some wicked speed.

Looking forward to throwing a lucene indexer into an EJB2.0 Message Driven
Bean,
Noah

===========================================
public final class TracingDirectory extends Directory {
 private Directory passThroughDirectory = null;

 public TracingDirectory(Directory passThroughDirectory) {
  this.passThroughDirectory = passThroughDirectory;
 }

 public String[] list()
  throws IOException, SecurityException {
  System.err.println("list()");
  return this.passThroughDirectory.list();
 }
<snip />
}

===========================================
----- Original Message -----
From: "Brian Goetz" <[EMAIL PROTECTED]>
To: "Noah Nordrum" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 5:39 PM
Subject: Re: [Lucene-users] JDBC Persistence of Indexes


>
> >     I noticed in the archives there was some talk
> >about having a JDBCDirectory (specificly there was an
> >OracleDirectory) but I can't seem to find any progress
> >on that issue.
>
> The problem with this is that the Directory interface really looks like a
> file system; you could store the files in a database, which might make
them
> more accessible, but would probably be slower performance as Lucene wants
> to be able to do random-access on those files.
>
> The CachingDirectory approach would help, as then segments would be read
> out o the database once and then cached, but I suspect that this approach
> is not as useful as it might appear.
>
> I'd like to see Directory enhanced to make it easier to store index
> information in a database, but that's a separate issue.
>
>
> --
> Brian Goetz
> Quiotix Corporation
> [EMAIL PROTECTED]           Tel: 650-843-1300            Fax: 650-324-8032
>
> http://www.quiotix.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev

Reply via email to