Re: Regarding Opening a 1GB File for Processing.
From: Thomas Ganss (TGanss_RemoveForRealAdress_at_T-Online.de)
Date: 06/24/04
- Next message: Ashish M Bhonkiya: "Re: Regarding Opening a 1GB File for Processing."
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Application Center Test setting concurrent Users"
- In reply to: Ashish M Bhonkiya: "Re: Regarding Opening a 1GB File for Processing."
- Next in thread: Eric Gunnerson [MS]: "Re: Regarding Opening a 1GB File for Processing."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Jun 2004 08:28:53 +0200
>its a text file each record is of 100 chars, and the
>following is the structure of the file. i need to sort the
>file based in the first field, second field is the record
>number, ids are not unique, record number (2nd filed) is
>unique.
0000000601 0000000001 Cherry Venus
sdjsdiuhndxjsnddxs
0000000054 0000000002 Orange Jupiter
xuhdexeudfhxe
You only need to read the first number, since the Record Number
should be the same as your counter - a bit of speed gained.
After sorting, you can read each block as an offset of the file -
kind of very simple ISAM.
Another option is to read in the file into a *local* filehandler /
datastorage mechanism: foxpro or dbase should do it under
5 minutes. A local SQL server would be another (possibly
slightly slower [because of heightened security]) option.
But since the file *you* get it is probably machine generated,
the quickest way would be to sort ***before***
outputting the file <g>.
HTH
thomas
- Next message: Ashish M Bhonkiya: "Re: Regarding Opening a 1GB File for Processing."
- Previous message: anonymous_at_discussions.microsoft.com: "Re: Application Center Test setting concurrent Users"
- In reply to: Ashish M Bhonkiya: "Re: Regarding Opening a 1GB File for Processing."
- Next in thread: Eric Gunnerson [MS]: "Re: Regarding Opening a 1GB File for Processing."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|