diff --git a/azure/container-app.bicep b/azure/container-app.bicep index c9b2d3cc..ae196c02 100644 --- a/azure/container-app.bicep +++ b/azure/container-app.bicep @@ -246,8 +246,8 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = { // Recursos mínim viable — escalar horitzontalment via rèpliques resources: { - cpu: json('0.5') - memory: '1Gi' + cpu: json('2') + memory: '4Gi' } // Muntar Azure Files quan s'ha configurat storage @@ -266,6 +266,7 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = { name: 'uploads' storageType: 'AzureFile' storageName: 'uploads' + mountOptions: 'nobrl,cache=strict,nosharesock,actimeo=30' } ] diff --git a/backend/app/graph/graphiti_backend.py b/backend/app/graph/graphiti_backend.py index cbc93a18..e184ceca 100644 --- a/backend/app/graph/graphiti_backend.py +++ b/backend/app/graph/graphiti_backend.py @@ -521,13 +521,9 @@ class GraphitiBackend(GraphBackend): ) async def _execute_neo4j_query(self, query: str, parameters: dict = None): - """Execute a raw Cypher query against Neo4j via the sync driver in a thread pool.""" - loop = asyncio.get_running_loop() - result = await loop.run_in_executor( - None, - lambda: self._client.driver.execute_query(query, **({"parameters_": parameters} if parameters else {})) - ) - return result + """Execute a raw Cypher query against the async Neo4j driver.""" + kwargs = {"params": parameters} if parameters else {} + return await self._client.driver.execute_query(query, **kwargs) async def clone_graph(self, src_group_id: str, dst_group_id: str) -> None: """Clone all nodes and relationships from src_group_id to dst_group_id."""