[mythtv-commits] Ticket #4609: Scheduler speedup - SQL with negative values on unsigned int columns.
MythTV
mythtv at cvs.mythtv.org
Thu Feb 7 21:48:27 UTC 2008
#4609: Scheduler speedup - SQL with negative values on unsigned int columns.
-----------------------------------------------------+----------------------
Reporter: Mark Buechler <Mark.Buechler at gmail.com> | Owner: ijr
Type: patch | Status: closed
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution: fixed
Mlocked: 0 |
-----------------------------------------------------+----------------------
Changes (by gigem):
* status: new => closed
* resolution: => fixed
Comment:
(In [15829]) 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.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4609#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list