You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
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...
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?
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.
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 vacuumdb -d [dbname] -v -f -F on my database, and now all counts are working correctly. Thank you for your help and explaining how this works! 🙏
Activity
davimacedo commentedon Feb 12, 2020
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?
Wouter125 commentedon Feb 12, 2020
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.
davimacedo commentedon Feb 12, 2020
Do you see any error message either in your Parse Server or Web browser console?
Wouter125 commentedon Feb 12, 2020
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.
dplewis commentedon Feb 13, 2020
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
ANALYZEon a specific class.Wouter125 commentedon Feb 14, 2020
Alright, I just added some more rows to see what happens.
Still displaying zero. It counts on creation, and on deletion, on filtering. But it remains 0 when just rendering the list.
dplewis commentedon Feb 14, 2020
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.
Wouter125 commentedon Feb 15, 2020
Gotcha. So I just ran
vacuumdb -d [dbname] -v -f -Fon my database, and now all counts are working correctly. Thank you for your help and explaining how this works! 🙏