Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pvr] don't persist channel groups (includes members) unless the group is fully loaded #6092

Merged
merged 1 commit into from Jan 20, 2015

Conversation

Jalle19
Copy link
Member

@Jalle19 Jalle19 commented Jan 2, 2015

While working on #6091 I noticed that we persist everything to database quite a few times while starting the PVR manager. I've changed it so it only attempts to persist things after they've been fully loaded. At least when running in Visual Studio this speeds up the manager startup time a bit.

@opdenkamp do you think this is correct?

@Jalle19 Jalle19 added Type: Improvement non-breaking change which improves existing functionality Component: PVR labels Jan 2, 2015
@opdenkamp
Copy link
Member

we need the db id's of channels for group memberships, so we do need to persist these for the internal group i think. this change should be fine for the other groups.

@Jalle19
Copy link
Member Author

Jalle19 commented Jan 2, 2015

@opdenkamp the inserted ID is set for the channel object after the query has run.

@Jalle19
Copy link
Member Author

Jalle19 commented Jan 2, 2015

Sorry I thought we were talking about another PR.

@Jalle19
Copy link
Member Author

Jalle19 commented Jan 2, 2015

I couldn't find any downsides to this, even after resetting the database.

@opdenkamp
Copy link
Member

right, let me check this properly when i got a tree checked out again. just checking emails sent by github atm (and it's quite a lot of them ;-))

@opdenkamp
Copy link
Member

i guess the pr changed in the meantime, or i was talking about the other PR too :)

opdenkamp pushed a commit that referenced this pull request Jan 20, 2015
[pvr] don't persist channel groups (includes members) unless the group is fully loaded
@opdenkamp opdenkamp merged commit e740097 into xbmc:master Jan 20, 2015
@MartijnKaijser MartijnKaijser modified the milestone: Helix 15.0-alpha1 Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants