supper aban_89
supper aban_89

Reputation: 339

To many queries called per request in drupal

I've built an website using drupal and deployed it. But it very very slow. I installed the Devel module and see 120 queries per request. And the total execution time is 3000ms. Is this normal?

I just install some module such as: taxonomy menu, simple ads, classified ads, rule, locale. Can anyone suggest how to reduce this?

Upvotes: 2

Views: 739

Answers (3)

supper aban_89
supper aban_89

Reputation: 339

here the link of html output of my modules and my home page, which include devel information. Can you see some thing make my site slow.Maybe I left some module which need to be uninstalled. I see more than 300 query, and I don't think a website with 300 queries per request is normal. Thanks!

Upvotes: 0

Gulab Bisht
Gulab Bisht

Reputation: 195

Make sure you have enabled caching option available in 'admin/config/development/performance' page, aggregating css and javascript could help a lot.

You can also enable views caching in those block in which you think data is not going to change frequently.

For images you can use image cache to reduce size of image from their original size, it could reduce you page size.

For more info you can visit "Drupal caching, speed and performance" page on drupal.org.

Upvotes: 2

Muhammad Reda
Muhammad Reda

Reputation: 27033

First try to debug the website as an anonymous user or any logged in user other than the admin to get more accurate stats.

Then you can consider caching the output to reduce the number of database queries. (faster approaches: cache some blocks in your page using views caching or block cache module).

Hope this helps.

Upvotes: 3

Related Questions