Better way to get player statistics? #4276
Replies: 2 comments
-
You should use Query API and SQL aggregation functions ( https://github.com/plan-player-analytics/Plan/wiki/APIv5-Query-API |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I rewrote my old code with direct SQL, but then realized that every database request from PLAN is sync and will be performed sequently (no diff whether its query or execute). Now I will try to use my own connection pool for async execution if there is no other way to do it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I have tried to get player statistics from PLAN? but realized that my way is EXTREMELY slow (30-100s for query). I wrote this code a few month ago, after some research in source code of the plugin. Could you please help me resolve these speed issues.
Beta Was this translation helpful? Give feedback.
All reactions