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

Update to answers and plans controllers and added an index to the set… #3428

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

briri
Copy link
Contributor

@briri briri commented Jun 17, 2024

Some relatively minor changes that provide significant performance improvements:

  • Add an index to the settings table
  • Update queries on the plans_controller and answers_controller.

Copy link

1 Warning
⚠️ There are code changes, but no corresponding tests. Please include tests if this PR introduces any modifications in behavior. \n
Ignore this warning if the PR ONLY contains translation.io synced updates.

Generated by 🚫 Danger

@@ -505,6 +505,7 @@
t.string "target_type"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["target_id", "target_type"], name: "settings_target"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a corresponding migration file for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes 💯

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just added one

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

2 participants