mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #157] [MERGED] [core] Add Indexes to Improve Query Performance #157
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/157
Author: @ricoberger
Created: 3/13/2024
Status: ✅ Merged
Merged: 3/13/2024
Merged by: @ricoberger
Base:
main← Head:core-add-indexes-to-improve-query-performance📝 Commits (1)
3d92ba5[core] Add Indexes to Improve Query Performance📊 Changes
1 file changed (+18 additions, -0 deletions)
View changed files
➕
supabase/migrations/20240312204702_add_indexes.sql(+18 -0)📄 Description
Until now it could happen that the items for a column could not be retrieved from the database, because of the set query timeout. In this case we received the following error:
To fix this issue we added an
items_columnId_idxindex, so that the items for a column are retrieved fast.We also added some other useful indexes to improve the overall performance of our queries.
Last but not least we also added an index to the
userIdcolumns as it is recommended by Supabase to improve the performance of our RLS policies.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.