Skip to content

Using Postgres with Docker. Total entry count per class doesn't show. #2523

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

Closed
4 tasks done
jaysonng opened this issue Jan 20, 2024 · 4 comments
Closed
4 tasks done
Labels
type:question Support or code-level question

Comments

@jaysonng
Copy link

jaysonng commented Jan 20, 2024

New Issue Checklist

Issue Description

On the left side of ParseDashboard where it shows all the classes, it should show how many entries there are per Class. However when using Postgres (on docker - not sure if this is partly the problem) it always shows 0. Sometimes it updates when you enter data but on reloading, it goes back to 0.

Steps to reproduce

Install dashboard using postgres.

Actual Outcome

0 entry counts

Expected Outcome

Shows the total count per class like when i was using mongodb.

Environment

Dashboard

  • Parse Dashboard version: 5.3
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Safari
  • Browser version: 17.1

Server

  • Parse Server version: 6.4
  • Operating system: 6.4
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): postgres
  • Database version: 15.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Logs

Copy link

parse-github-assistant bot commented Jan 20, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@cbaker6
Copy link
Contributor

cbaker6 commented Jan 20, 2024

The reason is the Parse server is using particular Postgres methods to estimate count, once you add more data it will update. Note this has nothing to do with docker. See my comments and discussion here parse-community/parse-server#8502 (comment)

@mtrezza mtrezza added the type:question Support or code-level question label Jan 21, 2024
@mtrezza
Copy link
Member

mtrezza commented Jan 21, 2024

Closing as it's described in parse-community/parse-server#8502

@mtrezza mtrezza closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
@jaysonng
Copy link
Author

Can we not have "0" instead of showing "0" then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

3 participants