[mythtv] [PATCH] Stop complaints about duplicate keys on program insert

Ivor Hewitt ivor at ivor.org
Wed Apr 6 12:00:15 UTC 2005


> The attached patch adds a few lines to siscan.cpp that delete a
> program from the program table before inserting the new program
> on the same channel at the same start time.
>
> This is for those of us who get their program guide data over
> the air from a DVB card, and it stops the logfile from filling
> up with lots of messages complaining that the program information
> couldn't be inserted because the key already exists. This is the
> normal case as the same program information is sent over and over.
>
> This mimics the same behaviour as found in programinfo.cpp
>

Hi,
Since the same information is sent over and over wouldn't it be preferable to
simply leave the information intact in these cases and ignore the update
instead? rather than hitting the database with DELETE and INSERTs?

Just my .2p.

Cheers,

-- 
http://ivor.org - leylandii hedge -- http://ivor.it - technology

SquirrelMail - webmail for nuts.




More information about the mythtv-dev mailing list