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.
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.