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

Fix #642: count total number of contacts #759

Merged
merged 6 commits into from
Jul 18, 2023
Merged

Conversation

leplatrem
Copy link
Contributor

@leplatrem leplatrem commented Jul 12, 2023

Fix #642

@leplatrem leplatrem requested a review from a team as a code owner July 12, 2023 19:03
@leplatrem leplatrem added the enhancement New feature or request label Jul 12, 2023
ctms/crud.py Outdated Show resolved Hide resolved
@leplatrem
Copy link
Contributor Author

Andre confirmed that vacuum analyze runs regularly on the database (default behaviour). That means the count using table metadata should be relatively accurate (A count is always an estimate if they are concurrent writes anyway), and since the objective is to plot in Grafana, we don't really care if there's a bit of latency before the accurate values show up.

@leplatrem leplatrem requested a review from grahamalama July 13, 2023 13:26
ctms/crud.py Show resolved Hide resolved
@leplatrem leplatrem merged commit bd8b23d into main Jul 18, 2023
@leplatrem leplatrem deleted the 642-gauge-to-count-contact branch July 18, 2023 09:57
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.

Display current amount of Contact records in CTMS Grafana (gauge)
2 participants