Recordings are namend "manuel" when EPG importer is running (1 Viewer)

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Currently TvBusinessLayer is used to insert programs into EPG. It does this by starting a separate background thread to do the inserts. That thread will have to do the deletes as well in order to be in the same transaction, and the transaction time be short and controllable.

    Batches of inserts passed to TvBusinessLayer have to be small enough to not starve the system. So the grabbers have to be modified to not pass all programs as a single batch, but rather multiple small batches (probably one batch per channel, or even better one batch per channel per day if possible).

    As soon as Jameson confirms his issue (https://forum.team-mediaportal.com/xmltv-137/stay-awake-whilst-loading-epg-73426/) is resolved I can start working on this.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Recordings are namend "manuel" when EPG importer is running

    thanks for this
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Here is a first try. This works by putting the delete operation and the inserts into one transaction. There is one transaction per channel imported, so DB locks should be minimal.

    Give it a try. If it solves the problem, please also test that nothing else is broken regarding WebEPG, XmlTV and TvMovie.
    The binaries are based on SVN 24580.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Recordings are namend "manuel" when EPG importer is running

    Thanks for trying to fix this problem. Could you please post a Patch file? I'm using my own Version of MP thanks.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Here is the patch on SVN24580.
     

    Attachments

    • 0002587 - Recordings are named manual if started when EPG importer is running - SVN 24537.patch
      30.9 KB

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Recordings are namend "manuel" when EPG importer is running

    OK will test this for a week or so to be shure it will work. Is this OK?
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Recordings are namend "manuel" when EPG importer is running

    Testing starts now - patch is applied :) thanks!
     

    Users who are viewing this thread

    Top Bottom