-
Notifications
You must be signed in to change notification settings - Fork 633
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
Postgresql is slower than mariadb (graphql, ping) #7478
Comments
We haven’t seen any significant differences in our own testing. Were you testing with the exact same content structures (sections, entry types, fields, etc.)? If not, that is likely the main culprit. Most of GraphQL’s slowness can usually be attributed to its work defining the schema, which unfortunately isn’t cacheable yet. |
Both installs are complete fresh. I used the command from docs: https://craftcms.com/docs/3.x/installation.html#downloading-with-composer composer create-project craftcms/craft craft_mysql
and
composer create-project craftcms/craft craft_postgres Both databases are in docker container. BTW: It is just a ping call. Not a query for entries. |
Hm, in that case perhaps this is a network routing issue with your Postgres server. We can’t reproduce this. Feel free to write into support@craftcms.com if you want us to help you look into your setup further – but this isn’t a Craft-specific issue AFAICT. |
BTW: Everything was runnning on local machine. |
Yeah I thought that could be the case, but that doesn’t rule out networking issues. |
Description
I was wondering why is graphql so slow. Than i make simple test. I installed two instances and simple ping request. The result is completely different. Just see screenshot:
MariaDB 10.3:
PostgreSQL 13.1:
If i work with real data queries. Than it took 300 - 800 ms. 👎
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: