For an application I am maintaining, there are various data sets that
should get uploaded into the MySQL database with each deployment, and of
course repeatedly during development. For example there is a data set
for cities, which is quite large.

The data is available as CSV files, which are structured *differently*
than the MySQL database.

The plan:

  Write a command line script that converts CSV files into SQL. Then
  upload the SQL into the database.

What I also considered:

* Conversion to fixtures instead of SQL: That may make things a little
  bit more database-independent. The disadvantage is that fixtures don't
  seem to be made for big data sets. Their name suggests that they are
  made for testing.

* Instead of using a command line script, allow uploading or maintenance
  of the data via an admin web interface. This is not necessary for now,
  and we would still need to have a mechanism that makes deployment of
  data from staging to production simple.

Anyway, I'd like to know:

* Where should the CSV and the (temporary) SQL files be stored in order
  to adhere to Symfony's conventions?

* Where should I put the conversion script?

* How would I best integrate into the Symfony project: conversion from
  CSV and uploading of the SQL data?

We use:

  Symfony Version 1.1 (to be updated to 1.4) with Propel

-- 
Dipl.-Phys. Felix E. Klee
Mobile: +34.693759173, +49.174.1386060
Fax: +49.3212.1021049

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to