That's a really good idea on having a controller take the upload into
temp.  Is there a size limit on the temp directory? Or a time limit on
how long a dyno can be locked to a single upload before being
restarted?

On Mar 13, 5:47 am, Daniele <[email protected]> wrote:
> This is an hard step and depend by the size of default dataset (?).
>
> Just an idea (I've not tested it):
>
> * Create a controller for the update with an upload field.
> * Upload a DB with the basic dataset only. The file will update in
> the /temp dir.
> * Find out you postgres config reading the config/database.yml
> * Execute (within the controller or by console) `psql ...` to import
> tables. Two ways:
> ** Realtime overwriting (perhaps you have to put the app in
> maintenance mode)
> ** Import with a different name, then delete the originals table and
> rename the new ones
>
> I don't know if Heroku folks are happy about this "a bit system level"
> procedure :P
>
> On 13 Mar, 01:46, Mike <[email protected]> wrote:
>
> > Those are really good ideas. Would there be any way you can think of
> > to push data back up to the server?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en.

Reply via email to