Skip to content

Commit ac81e48

Browse files
committed
Allow pooling to be configurable + disable by default
1 parent 84a78ae commit ac81e48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

llms/db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import json
2+
import os
23
import sqlite3
34
import threading
45
from queue import Empty, Queue
56
from threading import Event, Thread
67

7-
POOL = True
8+
POOL = os.getenv("LLMS_POOL", "0") == "1"
89

910

1011
def create_reader_connection(db_path):

0 commit comments

Comments
 (0)