Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Joining separate data files to make one.

by sundialsvc4 (Abbot)
on Oct 06, 2010 at 13:24 UTC ( #863786=note: print w/replies, xml ) Need Help??

in reply to Joining separate data files to make one.

“The COBOL way” of doing this would be to SORT the individual files by the same key, then write logic that MERGEs the two sorted files together.   This is what you are doing here.

Another way to do it would be ... to use DBD::SQLite.   SQLite is a public domain database engine which works with single files.   (There is no “server.”)   So, instead of storing your data (initially, perhaps) as “a flat file,” you store it as a database... this “database” being, in fact, “just a file.”   SQLite is extremely robust and fast, and it is very heavily used in smart phones and so-forth.   I find myself using it rather constantly in situations where I normally would have used “a flat file.”   The overhead of doing so is, “essentially, nil.”

  • Comment on Re: Joining separate data files to make one.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://863786]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-05-23 03:43 GMT
Find Nodes?
    Voting Booth?