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

Refactor: removed triggered function which is being execute twice #4851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Waishnav
Copy link
Contributor

Fixes #4817

Describe the changes you have made in this PR -

function for populating the searchable column with tsvector is called twice, one is invoked from the postgresql (migration file), and other from the projects.rb model file

So the trigger function from the model file can be removed, and this can improve performance keeping resources free for db write operation.

Screenshots of the changes (If any) -

cv.search.refactor.mp4

Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Copy link

codeclimate bot commented Mar 27, 2024

Code Climate has analyzed commit 9a575d2 and detected 0 issues on this pull request.

View more on Code Climate.

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.

Bug: in project search implementation trigger function to generate tsvector is running twice
1 participant