updated Postgres Service
This commit is contained in:
@@ -150,7 +150,9 @@ class CollectionContext:
|
||||
self.client = MongoClient(
|
||||
self.db_handler.uri, **self.db_handler.client_options
|
||||
)
|
||||
self.collection = self.client.get_database()[self.collection_name]
|
||||
# Get database from URI
|
||||
db_name = self.client.get_database().name
|
||||
self.collection = self.client[db_name][self.collection_name]
|
||||
|
||||
# Enhance collection methods with retry capabilities
|
||||
self._add_retry_capabilities()
|
||||
@@ -201,7 +203,6 @@ class CollectionContext:
|
||||
|
||||
mongo_handler = MongoDBHandler(
|
||||
uri=mongo_configs.url,
|
||||
db_name=mongo_configs.DB,
|
||||
max_pool_size=100,
|
||||
min_pool_size=20,
|
||||
max_idle_time_ms=60000,
|
||||
|
||||
Reference in New Issue
Block a user