Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contractors
#12
That is a problem, I agree,
I constantly ran across this problem when working in the telecommunications industry
I was constantly complaining about the use of text fields for non textual data.

I couldn't justify the cost of conversion from one state to the other.
However, text is the native format for relational database columns or fields, so I
did understand where the government folks were coming from.

In my own data, I used indexed flat files for my own work.
The index was a hash into the actual data (which was always binary)

When it became necessary to deal with sorting text based files, the usual solution
was to pre-process the text file, creating a secondary file that contained two fields.

The first would be all of the sort keys in the order of precedence, and the second
being an offset into the original file (the physical location of the text record).

I would then sort the index file.
A copy of the original was made by reading the sorted records in sequence.

This is a very expensive and only temporary solution (as the input data must be frozen during the process).

The index is then discarded.
Reply


Messages In This Thread
Contractors - by ichabod801 - Jan-31-2017, 05:26 PM
RE: Contractors - by Ofnuts - Jan-31-2017, 06:27 PM
RE: Contractors - by ichabod801 - Jan-31-2017, 06:53 PM
RE: Contractors - by micseydel - Jan-31-2017, 10:11 PM
RE: Contractors - by ichabod801 - Feb-02-2017, 11:04 PM
RE: Contractors - by Skaperen - Feb-05-2017, 07:32 AM
RE: Contractors - by ichabod801 - Feb-05-2017, 11:30 AM
RE: Contractors - by Ofnuts - Feb-06-2017, 10:08 AM
RE: Contractors - by Skaperen - Feb-06-2017, 05:01 AM
RE: Contractors - by Larz60+ - Feb-06-2017, 11:05 AM
RE: Contractors - by ichabod801 - Feb-06-2017, 04:20 PM
RE: Contractors - by Larz60+ - Feb-06-2017, 06:28 PM
RE: Contractors - by wavic - Feb-06-2017, 06:47 PM
RE: Contractors - by Larz60+ - Feb-06-2017, 07:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020