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

Add composite index to fcmdevice table #232

Merged
merged 2 commits into from
May 3, 2023

Conversation

keeth
Copy link
Contributor

@keeth keeth commented May 1, 2023

This query causes a full table scan which is very expensive for large tables:

UPDATE "fcm_django_fcmdevice" SET "active" = false WHERE ...

Before index: Seq Scan, 35ms

After index: Index Scan, 0.1ms

Keith Grennan added 2 commits May 1, 2023 14:52
This query causes a full table scan which is very expensive for large tables:

UPDATE "fcm_django_fcmdevice" SET "active" = false WHERE ...

Before index: Seq Scan, 35ms

After index: Index Scan, 0.1ms
@xtrinch xtrinch merged commit 50376c2 into xtrinch:master May 3, 2023
@Akay7
Copy link
Contributor

Akay7 commented May 26, 2023

Could you please provide more information about that query?
UPDATE "fcm_django_fcmdevice" SET "active" = false WHERE ...

  1. When that query happened?
  2. What was in the WHERE clause?
  3. Which DB was used?

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.

3 participants