On Wednesday, July 11, 2012 6:26:00 PM UTC-4, Massimo Di Pierro wrote:
>
> I am planning to improve this functionality but it would help to know if 
> it works for you as it is and what problems you encounter with it. 
>

I originally used the "export-to-csv", but a few months ago, I switched to 
just shipping the sqlite files (actually the whole "databases" directory 
with .table files); That handles everything like types, blobs, fractional 
seconds in the database, etc, without any conversion. It is also faster 
when processing the files at the other end - especially if you have indices 
and have a non-trivial import requirement. It should be opened with 
auto_import=True on the receiving end, of course.

(you'd still need an "export" to a new .sqlite database, or use sqlite's 
backup command, to make sure you get the database in a consistent state -- 
unless you know that the database is in a fully committed state when you 
send it).

If the connection is not reliable, the classic solution is a queuing system 
like MSMQ / MQSeries / RabbitMQ (which is often non-trivial to manage), but 
you could just export (csv, .sqlite, whatever) to a dropbox-or-similar 
synced directory (e.g. sparkleshare lets you own the repository and not 
rely on dropbox.com servers), and import it on the server side when the 
file has changed. much, much simpler and works just as well for one way 
communication that does not require the lowest possible latency.

Reply via email to