[mythtv-commits] mythtv commit: r23150 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Jan 15 21:41:26 UTC 2010


      Author: danielk
        Date: 2010-01-15 21:41:26 +0000 (Fri, 15 Jan 2010)
New Revision: 23150
   Changeset: http://svn.mythtv.org/trac/changeset/23150

Modified:

   trunk/mythtv/libs/libmyth/programinfo.cpp

Log:

Makes two optimizations to SetPositionMap[Delta]

The first is to only call prepare once for the many inserts (and only bind the non-changing things once).
The second is to use INSERT DELAYED instead of just a regular INSERT.

The first is always safe and saves lots of time with remote DB's, the second delays inserts if a read on the table is in progress, I did not find that this apprecably delayed the inserts in my tests, but if someone finds that it does with their preferred DB engine we can revert this part.

For the second, INSERT DELAYED is also not SQL-92 compliant, but it can be safely removed if we move to a different database sql frontend.






More information about the mythtv-commits mailing list