Re: Implement Join in Java: looking for ideas

From: David Baer (nospam_at_gmx.ch)
Date: 12/21/03


Date: Sun, 21 Dec 2003 19:06:19 +0100

Hi Ruud,
The data is coming from different data sources (even allowing others types
than databases).

So I could put the data back into a database, just for the purpose of
joining it, where i could not benefit much from indices in the database.

I think it is better to do the joins myself, don't you think?

david

Ruud de Koter wrote:

> Hi David,
>
> You wrote:
>>
>> Hi, for a proto type i'm implementing a join-operation (as in relational
>> databases) on potentialy huge tables in java.
>>
>> if implemented naively, this takes at least size(Table1) * size(Table2).
>> my plan was to put the keys of the smaller table into a hashtable and
>> than iterate over the larger table.
>>
>> is there any comment on this, or you have ideas for better data
>> structures?
>
> Given the fact that most RDBMS manufacturers have (tens of) years of
> experience with joins, why would you want to implement that yourself? Or,
> more positively: are you sure you have good reason to assume you can do
> the joining better than the RDBMS will do it?
>
> Regards,
>
> Ruud.
>>
>> thank you!
>>
>> david
>



Relevant Pages

  • Re: Move SQL databases?
    ... OK thank you David ... > Page 14 beings dicussing moving the SBSMonitoring database. ... >> I checked the whotepaper but it does not cover SQL databases. ...
    (microsoft.public.windows.server.sbs)
  • Re: On Subject: Navigation Systems
    ... David M. wrote: ... and etc. because the databases are not perfect. ... but still lots of mistakes. ... And almost all the GPS Points of Interest are derived from the same database. ...
    (rec.outdoors.rv-travel)
  • Re: Access Developer Handbook Question
    ... "David" wrote in message ... Is this a reference library problem? ... is there a standard set of reference library's I ... > off on new databases, is there a standard set of things I ...
    (microsoft.public.access.setupconfig)
  • Re: DataBase over WAN: ASP vs. Terminal Server Costs?
    ... > My web host provides MySQL with me having full administration of any ... > databases I create. ... "MS-SQL Server " ... No, David. ...
    (comp.databases.ms-access)
  • Re: Searching text in memo fields of Access 2003
    ... David wrote: ... >memo fields of Access 2003 databases? ... MVP ...
    (microsoft.public.access.queries)