mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-05-25 20:46:40 -05:00
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: ``` PostgrestException(message: canceling statement due to statement timeout, code: 57014, details: Internal Server Error, hint: null) ``` To fix this issue we added an `items_columnId_idx` index, 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 `userId` columns as it is recommended by Supabase to improve the performance of our RLS policies.