@@ -858,9 +858,7 @@ export class FeederPersistenceService {
|
||||
// Use raw SQL for performance — Prisma's { some: {} } relation filters
|
||||
// generate heavy correlated subqueries that hang on Raspberry Pi with
|
||||
// large tables (15M+ odd_selections, 3M+ participations).
|
||||
const result = await this.prisma.$queryRawUnsafe<
|
||||
Array<{ id: string }>
|
||||
>(
|
||||
const result = await this.prisma.$queryRawUnsafe<Array<{ id: string }>>(
|
||||
`
|
||||
SELECT m.id
|
||||
FROM matches m
|
||||
@@ -888,9 +886,7 @@ export class FeederPersistenceService {
|
||||
* returns which data scopes are missing per match.
|
||||
* Only checks completed (Ended) football/basketball matches.
|
||||
*/
|
||||
async getMissingScopes(
|
||||
matchIds: string[],
|
||||
): Promise<Map<string, string[]>> {
|
||||
async getMissingScopes(matchIds: string[]): Promise<Map<string, string[]>> {
|
||||
const result = new Map<string, string[]>();
|
||||
if (matchIds.length === 0) return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user