Skip to content

Conversation

@CoreyWinkelmannPP
Copy link
Contributor

Updated detectMariaDBJSON to accept dbName as a parameter, enabling filtering by CONSTRAINT_SCHEMA for more precise JSON constraint detection within specified databases.

The INFORMATION_SCHEMA tables, especially in production, can be a bottleneck if queried without constraints due to the high volume of metadata. By narrowing down the scope of JSON validation queries, we reduce potential load on INFORMATION_SCHEMA, improving efficiency and response times. This targeted approach allows for more precise schema capture while avoiding the pitfalls of exhaustive queries, especially in systems with many databases or tables.

@osheroff
Copy link
Collaborator

again, too much whitespace churn. does this really have a noticable impact on the database in a production system or is this kinda a theoretical win?

@CoreyWinkelmannPP
Copy link
Contributor Author

Sorry, I will stop my neovim from updating the whitespace on PRs. This affects our systems and we do need it. If we don't focus our queries to the information schema we do experience issues.

@CoreyWinkelmannPP CoreyWinkelmannPP force-pushed the information_schema_scoped branch from 004f828 to 449e203 Compare November 14, 2024 15:51
@sydneyfowler
Copy link

Hi @osheroff - My team and I are looking to help revive this pull request, which was originally submitted by my colleague @CoreyWinkelmannPP. We have cleaned up the whitespace changes. Do you have any additional input or feedback on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants