Add statement_cache_size parameter to allow connections to supabase (#1676)
This commit is contained in:
@@ -54,18 +54,6 @@ from .base import ProviderConfig
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
def escape_braces(s: str) -> str:
|
||||
"""
|
||||
Escape braces in a string.
|
||||
This is a placeholder function - implement the actual logic as needed.
|
||||
"""
|
||||
# Implement your escape_braces logic here
|
||||
return s.replace("{", "{{").replace("}", "}}")
|
||||
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class PostgresConfigurationSettings(BaseModel):
|
||||
"""
|
||||
Configuration settings with defaults defined by the PGVector docker image.
|
||||
@@ -74,23 +62,24 @@ class PostgresConfigurationSettings(BaseModel):
|
||||
To tune these settings for a specific deployment, see https://pgtune.leopard.in.ua/
|
||||
"""
|
||||
|
||||
max_connections: Optional[int] = 256
|
||||
shared_buffers: Optional[int] = 16384
|
||||
effective_cache_size: Optional[int] = 524288
|
||||
maintenance_work_mem: Optional[int] = 65536
|
||||
checkpoint_completion_target: Optional[float] = 0.9
|
||||
wal_buffers: Optional[int] = 512
|
||||
default_statistics_target: Optional[int] = 100
|
||||
random_page_cost: Optional[float] = 4
|
||||
effective_io_concurrency: Optional[int] = 1
|
||||
work_mem: Optional[int] = 4096
|
||||
effective_cache_size: Optional[int] = 524288
|
||||
huge_pages: Optional[str] = "try"
|
||||
min_wal_size: Optional[int] = 80
|
||||
max_wal_size: Optional[int] = 1024
|
||||
max_worker_processes: Optional[int] = 8
|
||||
maintenance_work_mem: Optional[int] = 65536
|
||||
max_connections: Optional[int] = 256
|
||||
max_parallel_workers_per_gather: Optional[int] = 2
|
||||
max_parallel_workers: Optional[int] = 8
|
||||
max_parallel_maintenance_workers: Optional[int] = 2
|
||||
max_wal_size: Optional[int] = 1024
|
||||
max_worker_processes: Optional[int] = 8
|
||||
min_wal_size: Optional[int] = 80
|
||||
shared_buffers: Optional[int] = 16384
|
||||
statement_cache_size: Optional[int] = 100
|
||||
random_page_cost: Optional[float] = 4
|
||||
wal_buffers: Optional[int] = 512
|
||||
work_mem: Optional[int] = 4096
|
||||
|
||||
|
||||
class DatabaseConfig(ProviderConfig):
|
||||
|
||||
Reference in New Issue
Block a user