Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance on search #1528

Merged
merged 5 commits into from
May 5, 2024

Conversation

luanfreitasdev
Copy link
Collaborator

@luanfreitasdev luanfreitasdev commented May 4, 2024

Motivation

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

This PR removes unnecessary queries when we are searching for some text. The queries executed were to get the column type to check the JSON type column and not break when using PGSQL, however, this made Powergrid a little slow. The best solution found was to cache the column name and type

Before

1


After

2

Related Issue(s): #_____.

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

@luanfreitasdev luanfreitasdev merged commit 4cff0b1 into 5.x May 5, 2024
42 checks passed
@luanfreitasdev luanfreitasdev deleted the fix-remove-unnecessary-queries-in-each-search branch May 5, 2024 12:41
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.

None yet

1 participant