-
Notifications
You must be signed in to change notification settings - Fork 642
Description
Is your feature request related to a problem? Please describe.
It's very problematic for me that I am recording the session attributes in metadata but when retrieving data I am not able to filter on it. So basically my sessions have metadata dictionary with field "type": "AssistantA". I want to retrieve sessions from a project filtered based on attribute.metadata but thats not possible so I have to manage the filtering in backned on my side and then that causes issues with the pagination because sessions include all the records for other assistants as well. So I have to handle pagination in backend too for my dashboards.
Also this forces me to retrieve records in 1000s. Like I have to pass sessions.first: 2000 so that I receive adequate amount of recent sessions from which i can filter the adequate amount of assistants accordingly at backend but this casues issues sometimes. The following error is returned then:
"message": "QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 (Background on this error at: https://sqlalche.me/e/20/3o7r)"%22),
Describe the solution you'd like
I see there are options of filters in other objects but for projects.sessions there should be an option to filter from graphql like project.session.attributes.metadata["myfield"]="myvalue" and then the results is return paginated as per this filter.
Having this filter with sort, first and timeRange will make life easy.
Describe any alternative solutions you've considered
If you can get the queuepool limit error fixed then maybe i can atleast pursue the current approach I am at.
Additional context
No response
Social Media Handle
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status