Skip to content

unnecessary excessive DB calls? #764

@mohammad-passage

Description

@mohammad-passage

** Please make sure you read the contribution guide and file the issues in the rigth place. **
Contribution guide.

Describe the bug
We ran an ADK agent over 3500 objects and that took our database down.
Looking at queries it seems this query is causing it:

UPDATE app_states SET state=$1::JSONB, update_time=now() WHERE app_states.app_name = $2

I don't ever see a case that we actually want state for apps yet this is causing huge load on the DB. Also I don't have any state with prefix app: so I was not expecting this DB all at all.

To Reproduce
N/A

Expected behavior
N/A
Screenshots
Image

Desktop (please complete the following information):
N/A
Additional context
N//a

Metadata

Metadata

Assignees

Labels

services[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions