-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Object count is always 0 #1470
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
Comments
I couldn't reproduce the issue. Could you share all dependencies that you have in your package.json, yoru parse server config and your parse dashboard config? |
Sure! Full package.json;
Parse server config and Parse dashboard config. Running from my DO droplet;
I've stripped out some values and passwords of course. But I think this will do the trick. |
Do you see any error message either in your Parse Server or Web browser console? |
I was checking that before, but unfortunately not. Only the warning that I didn't set my push notification locale. That's why I opened this issue. 😬 Is there any way I can increase the logging on the server? A verbose flag or anything? Also is it possible there is cache active on the graphQL layer or inside parse server? I already removed postgres once and did a clean install. Also deleted the node modules and reinstalled them. Neither of them brought back the count. |
Count operations are expensive operations. In the dashboard we use estimated count. https://github.com/parse-community/parse-server/pull/5330/files We should add this information in the read me as I've seen users ask about this before. If you are using PG you can force the estimate count to update by using |
There are certain triggers that will update estimated count. If you are using Postgres check out the thread I posted before or google Autovacuum or ANALYZE command for PG. |
Gotcha. So I just ran |
Environment Setup
I configured my application with the following package.json;
The parse server is hooked up to a postgresQL database, and everything is working fine. The only issue is, that the number of objects are not counted anymore. For every class it remains 0. If I delete something it turns into -1.
I inspected the network tab and noticed that my class is being fetched twice when I click on browse on the left hand side.
If I click on a specific class my network tab executes the same call twice again. The first time it's response is like this;
{"results":[],"count":0}
Second time around it's;
{"results":[{"objectId":"I92PRuHC85","createdAt":"2020-02-11T11:35:45.855Z","updatedAt":"2020-02-11T11:35:45.855Z","name":"Test"}]}
Still the count that is being used throughout the UI remains 0. It was working before, I just did a few npm updates, so perhaps it has been broken in one of the last updates?
Oh, by the way the object count does work if I explicitly filter the list...
The text was updated successfully, but these errors were encountered: