Re: Output to text files or a database?



kd <KeeganDunn@xxxxxxxxx> wrote:
[have apps that read diverse data, write to textfiles, and another app reads
the textfiles and write to DB _versus_ having the apps that read the data
write to the DB themselves.]

I proposed this to a coworker, and he asked why the text files were
even necessary -- why not just immediately generate sql statements from
the different formats, and use the tables in the DB as the universal
format?

Is he right? Is there any reason to use text files as an intermediate
format? My gut is telling me to keep them, but my gut isn't good at
convincing people. :) What am I missing?

This is purely a judgement call, both solutions have pros and cons.

Having a standard textfile (possibly XML) format that gets loaded means you
have an intermediate step that is more easily debugged when something goes
wrong. It means you can distribute (over time or machines) the initial
processing and the DB load. It also allows you to make the loader do some
error checking that all the processors get to take advantage of.

Loading directly to DB is a simpler process, and likely faster.
--
Mark Rafn dagon@xxxxxxxxx <http://www.dagon.net/>
.



Relevant Pages

  • Re: Date format
    ... run reliably and other apps with hundreds that seem slow. ... I'm building a database not my first ... >>> Change the Short Date format to 'MM/yy' ... >>>> credit card mm/yy. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Got my new computer
    ... So it's a format where I can easily get the stuff back out of it? ... I'd just use the folder copy to an external USB drive. ... can get most of the important stuff by grabbing the Documents and Settings ... The less well-behaved apps keep their settings with the app, ...
    (alt.games.warcraft)
  • Re: Appleworks WP Docs
    ... in apps that do not use .doc, ... thoough _many_ apps can read .doc, it is better to use a format that is ... are lots of compatibility issues between Word-built RTF files and others ...
    (comp.sys.mac.apps)
  • Re: Watermark problem
    ... > Hi Tim, ... So it was the picture's format that matters in this case. ... > project was due in three days (he order the apps on Friday, ... > The report was using native VIPS report writer, and in my case, I ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Memory problems
    ... The possible ways to extract your matrix depends on the format of ... your textfiles. ... If you really have only numerics in your file, ...
    (comp.soft-sys.matlab)

Loading