parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.73k stars 1.38k forks source link

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

Closed jaysonng closed 6 months ago

jaysonng commented 6 months ago

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

Server

Database

Logs

parse-github-assistant[bot] commented 6 months ago

Thanks for opening this issue!

cbaker6 commented 6 months ago

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 https://github.com/parse-community/parse-server/issues/8502#issuecomment-1567140269

mtrezza commented 6 months ago

Closing as it's described in https://github.com/parse-community/parse-server/issues/8502

jaysonng commented 6 months ago

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