home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Quality Assurance
Bugtracker Feed
0002556: TVguide speedup + datamodel changes.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MediaPortal-Bot" data-source="post: 538589" data-attributes="member: 48617"><p><a href="https://forum.team-mediaportal.com/mediaportal-releases-315/tvguide-speedup-datamodel-changes-72398/" target="_blank">https://forum.team-mediaportal.com/mediaportal-releases-315/tvguide-speedup-datamodel-changes-72398/</a> [<a href="https://forum.team-mediaportal.com/mediaportal-releases-315/tvguide-speedup-datamodel-changes-72398/" target="_blank">^</a>]</p><p></p><p>Browsing the TVguide is currently slow.</p><p>This needs to be adressed by means of optimizations.</p><p></p><p>Some of the short-comings of the current database model have been reworked in order to have more efficient code as well as have code that is less complicated and therefor harder to read and maintain.</p><p></p><p>The table "program", which holds the EPG data has now been enriched with a new field called "states".</p><p></p><p>states can be a combination of various program states.</p><p></p><p>ex.</p><p></p><p>None = 0,</p><p>Notify = 1,</p><p>RecordOnce = 2,</p><p>RecordSeries = 4,</p><p>RecordManual = 8,</p><p>Conflict = 16,</p><p>RecordOncePending = 32, // used to indicate recording icon on tvguide, even though it hasnt begun yet.</p><p>RecordSeriesPending = 64 // used to indicate recording icon on tvguide, even though it hasnt begun yet.</p><p></p><p>obviously, these states need to be kept up2date at all times.</p><p>ex. when importing xmltv guide, when grabbing EPG, adding new schedules or removing schedules.</p><p>Also when the tvservice/scheduler starts a recording it will update the corresponding program entry.</p><p></p><p>The table "recording" has been enriched with 2 new fields.</p><p>isrecording (boolean): it tells if a recording is recording or not.</p><p>idschedule int : it refers to parent schedule id.</p><p></p><p>The table "schedule" has been enriched with 1 new field.</p><p>idparentschedule int : it refers to parent schedule id, handy when we need the root series schedule object of a spawned once schedule.</p><p></p><p>each reimport of EPG data will update the program table with the correct states.</p><p></p><p><a href="http://mantis.team-mediaportal.com/view.php?id=2556" target="_blank">Open the issue in Mantis...</a></p></blockquote><p></p>
[QUOTE="MediaPortal-Bot, post: 538589, member: 48617"] [URL]https://forum.team-mediaportal.com/mediaportal-releases-315/tvguide-speedup-datamodel-changes-72398/[/URL] [[URL="https://forum.team-mediaportal.com/mediaportal-releases-315/tvguide-speedup-datamodel-changes-72398/"]^[/URL]] Browsing the TVguide is currently slow. This needs to be adressed by means of optimizations. Some of the short-comings of the current database model have been reworked in order to have more efficient code as well as have code that is less complicated and therefor harder to read and maintain. The table "program", which holds the EPG data has now been enriched with a new field called "states". states can be a combination of various program states. ex. None = 0, Notify = 1, RecordOnce = 2, RecordSeries = 4, RecordManual = 8, Conflict = 16, RecordOncePending = 32, // used to indicate recording icon on tvguide, even though it hasnt begun yet. RecordSeriesPending = 64 // used to indicate recording icon on tvguide, even though it hasnt begun yet. obviously, these states need to be kept up2date at all times. ex. when importing xmltv guide, when grabbing EPG, adding new schedules or removing schedules. Also when the tvservice/scheduler starts a recording it will update the corresponding program entry. The table "recording" has been enriched with 2 new fields. isrecording (boolean): it tells if a recording is recording or not. idschedule int : it refers to parent schedule id. The table "schedule" has been enriched with 1 new field. idparentschedule int : it refers to parent schedule id, handy when we need the root series schedule object of a spawned once schedule. each reimport of EPG data will update the program table with the correct states. [url=http://mantis.team-mediaportal.com/view.php?id=2556]Open the issue in Mantis...[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugtracker Feed
0002556: TVguide speedup + datamodel changes.
Contact us
RSS
Top
Bottom