nextcloud / polls

🗳️ Polls app for Nextcloud
https://apps.nextcloud.com/apps/polls
GNU Affero General Public License v3.0
257 stars 73 forks source link

Optimize polls loading #3692

Open dartcafe opened 2 months ago

dartcafe commented 2 months ago

MigrateSubQueries to joins to avoid heavy subqueries Hopefully fixes #3688

Migrate

dartcafe commented 2 months ago

Nice, should help with performance 👍

I hope so. But I did not have the chance to test, if the outcome is the same as with the subquery.

But it is just at half way, since I plan to replace the other subquery, too. But it's a pain, since the complexity gets risen by every join; and more error-prone

Ideally should be tested with OCI, not sure if you’re willing to add https://github.com/nextcloud/.github/blob/master/workflow-templates/phpunit-oci.yml to the workflows?

Ah nice. I never thought about testing against OCI, although I have in mind, that this is a real use case.

Is can be slow, but oracle database differs on some things so for stuff like a manually written function like that it helps to test on it.

Yes definitely worth it. I would say, we should add it to the databases.

dartcafe commented 2 months ago

If only someone could take care of the the test suite. 😁