Skip to content

Improve performance#159

Merged
AFCMS merged 6 commits intomasterfrom
performance_improvements
Jun 18, 2025
Merged

Improve performance#159
AFCMS merged 6 commits intomasterfrom
performance_improvements

Conversation

@AFCMS
Copy link
Owner

@AFCMS AFCMS commented Jun 17, 2025

No description provided.

@AFCMS AFCMS requested a review from Copilot June 17, 2025 13:28
@AFCMS AFCMS added the enhancement New feature or request label Jun 17, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR focuses on optimizing the Postgres database by adding several indexes and updating authorization policies.

  • Removed existing policies on the pendingAuthors and postsCategories tables.
  • Added new indexes on tables such as authors, features, follows, likes, postsCategories, posts, profilesCategories, profiles.
  • Recreated policies for request co-authoring and author-related actions with updated conditions.
Comments suppressed due to low confidence (2)

supabase/migrations/20250617132119_optimise_db.sql:11

  • Verify that 'featuree' in both the index name and column reference is intentional; if it is a typo, consider renaming it for clarity and consistency.
CREATE INDEX idx_features_featuree ON public.features USING btree (featuree);

supabase/migrations/20250617132119_optimise_db.sql:13

  • Ensure that 'featurer' is the intended column name; if not, update it to reflect the correct naming conventions to avoid confusion.
CREATE INDEX idx_features_featurer ON public.features USING btree (featurer);

@AKArien AKArien changed the title Postgres indexing/auth schema selection Improve performance Jun 17, 2025
@AKArien
Copy link
Collaborator

AKArien commented Jun 17, 2025

need @AFCMS to implement the frontend to reduce the amount of calls to the database

@AFCMS AFCMS force-pushed the performance_improvements branch from b7a2c0e to 9eb9d4b Compare June 18, 2025 12:30
@AFCMS AFCMS merged commit da55252 into master Jun 18, 2025
@AFCMS AFCMS deleted the performance_improvements branch June 18, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants