Move to a single prisma client connection for the ui backend to prevent competing connections.

This commit is contained in:
Jaret Burkett
2026-07-21 11:21:28 -06:00
parent 9e9439015e
commit e54a0fe78c
18 changed files with 33 additions and 49 deletions

View File

@@ -1,10 +1,9 @@
import { PrismaClient } from '@prisma/client';
import prisma from '@/server/prisma';
import { defaultDatasetsFolder, defaultDataRoot } from '@/paths';
import { defaultTrainFolder } from '@/paths';
import NodeCache from 'node-cache';
const myCache = new NodeCache();
const prisma = new PrismaClient();
export const flushCache = () => {
myCache.flushAll();