Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Toward a generic Disk Sort for Java

Reply
Thread Tools

Toward a generic Disk Sort for Java

 
 
Roedy Green
Guest
Posts: n/a
 
      06-27-2008
On Thu, 26 Jun 2008 22:28:24 -0400, "John B. Matthews"
<> wrote, quoted or indirectly quoted someone who
said :

>Or, as the third shift operator once told me: throw it into a database
>and let Codd sort it out


It sounds like a joke, but I suspect that is how most big sorts are
done. Back in the olden days external sorts were pretty well the
first software to go commercial. Nearly everything else you wrote
yourself. You just don't see ads for them like you used to.
Opt-Tech is still around, but very quiet.


--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
 
John B. Matthews
Guest
Posts: n/a
 
      06-27-2008
In article <>,
Roedy Green <> wrote:

> On Thu, 26 Jun 2008 22:28:24 -0400, "John B. Matthews"
> <> wrote, quoted or indirectly quoted someone who
> said :
>
> >Or, as the third shift operator once told me: throw it into a database
> >and let Codd sort it out

>
> It sounds like a joke, but I suspect that is how most big sorts are
> done. Back in the olden days external sorts were pretty well the
> first software to go commercial. Nearly everything else you wrote
> yourself. You just don't see ads for them like you used to.
> Opt-Tech is still around, but very quiet.


Yes, a terrible pun on Codd and God, but you're right about the olden
days. At the same time, I wonder if a JDBC-enabled database may be a
useful abstraction for a generic, flat-file disk sort.

Yes, I know the project is already out of hand

--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      06-28-2008
Roedy Green wrote:
> On Thu, 26 Jun 2008 22:28:24 -0400, "John B. Matthews"
> <> wrote, quoted or indirectly quoted someone who
> said :
>> Or, as the third shift operator once told me: throw it into a database
>> and let Codd sort it out

>
> It sounds like a joke, but I suspect that is how most big sorts are
> done. Back in the olden days external sorts were pretty well the
> first software to go commercial. Nearly everything else you wrote
> yourself. You just don't see ads for them like you used to.
> Opt-Tech is still around, but very quiet.


Data manipulation are done in databases or in memory today.

The use of large flat files for data is rare today, so little
demand for sort utilities.

Arne
 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      06-28-2008
On Thu, 26 Jun 2008 16:44:26 GMT, Roedy Green
<> wrote, quoted or indirectly quoted
someone who said :

>I was thinking how you might go about writing a sort that could handle
>more data than could fit in RAM.


I have written this up a student project

http://mindprod.com/jgloss/project/externalsort.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Martin Gregorie
Guest
Posts: n/a
 
      06-28-2008
On Fri, 27 Jun 2008 14:47:06 -0400, John B. Matthews wrote:

> At the same time, I wonder if a JDBC-enabled database may be a
> useful abstraction for a generic, flat-file disk sort.
>

It would be interesting to see how tipping records into an indexed
table and then reading them out again compared for speed with the
traditional in-memory sorted pre-string phase followed by n-way merge
passes. I don't think I'd lay bets either way.

Of course, if your system has enough swap space you could just substitute
a TreeMap for JDBC+database.


--
martin@ | Martin Gregorie
gregorie. |
org | Zappa fan & glider pilot


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toward Terser Java Roedy Green Java 24 07-15-2005 03:41 AM
generic object - moving toward PEP Steven Bethard Python 6 11-21-2004 10:47 PM
CAN I COUNT 70-305 TOWARD BOTH MCSD AND MCDBA? IGNACIO DE LA TORRE MCSD 1 04-29-2004 11:35 AM
Will 70-216 Count Toward My MCSA? Jim Bayers MCSE 2 01-26-2004 08:16 PM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57