[mythtv-commits] mythtv commit: r15829 by gigem

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Feb 7 21:48:23 UTC 2008


      Author: gigem
        Date: 2008-02-07 21:48:23 +0000 (Thu, 07 Feb 2008)
New Revision: 15829
   Changeset: http://cvs.mythtv.org/trac/changeset/15829

Modified:

   trunk/mythtv/programs/mythbackend/scheduler.cpp

Log:

Quick work around for a database inefficiency when comparing unsigned,
recordid values to the wildcard, recordid of -1.  This appears to
cause MySQL to ignore or not be able to use some table indices.  This
change customizes the affected queries to act on all recordids or the
specified one as needed.  It is partly based on the patch by Mark
Buechler.

An alternative approach to consider for longer term is to change the
database schema to use signed recordids.  PI::recordid is signed so
there's already a lurking problem, though, I don't expect anyone, not
even bjm, to ever use > 2^31 recordids.

Closes #4609.





More information about the mythtv-commits mailing list