One thing to be mindful of hen using SQLite: the database is loaded
completely into memory every time you access it. For a large database
(and ours isn't small!) this could incur quite a performance hit.
I'm sure there are several ways to MacGyver your way around this....
Kevin and I have been experimenting with generating departure times on
the fly rather than selecting them from the DB, as even on a normal
server these queries tend to be somewhat heavy. The jury's still out
on which method is faster, and the size of the database is an
important factor. Its quite possible that straight SQL lookups are
faster in all cases except very large agencies (of which the TTC is
one)
You can find something similar in Kevin's screensaver code (in C).
Cheers,
K
On Dec 6, 9:00 am, "George Talusan" <
george.talu...@gmail.com> wrote:
> Use mysqldump in ANSI mode and convert the data types to their
> equivalents. You can similarly use 'sed' on Kevin and Kieran's SQL
> script to strip out the MySQL cruft. It's fairly straightforward.
> Work on a small table (I suggest services) to get your script working.
>