hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.08k stars 2.77k forks source link

HASURA_GRAPHQL_METADATA_DATABASE_URL should allow HDB invocation logs | #7580

Open sagungargs15 opened 3 years ago

sagungargs15 commented 3 years ago

Is your proposal related to a problem?

HASURA_GRAPHQL_METADATA_DATABASE_URL should allow HDB invocation logs to be separated in a new postgres DB and handle automatic migration when main DB starts getting large because of Logs

Alternate?

Manually pruning every week on self hosted solution.

PR?

Would require your help

sagungargs15 commented 3 years ago

According to the docs, I have set the metadata url and primary db url with the keys below respectively:

Graphql engine did create few tables in the metadata_database and I can see hdb_catalog schema and few of these tables below:

But after we create an event and when that event is invoked, all the invocation and event logs are still getting generated in the primary database:

I wanted to segregate the metadata_database for mainly these two tables, which is not happening after setting metadata_database completely separate.