> We have a set of semantic queries in a template. Thattemplate is > used in some pages. However, by looking at the database processlist, > it seems that those set of queries are processed whenever a page > isrequested, even when the template is not used by the requested > page (e.g.special pages). All the SQL queries are generated by the > getQueryResultfunction. Since those queries are very computational > intensive, this“bug” slows down the entire site. If we take the > inline queries outof the template or change $smwgQEnabled to false, > the site becomes fast again.Has anyone experienced the same issue? Perhaps the query is too complex or data set is too big. I believe that "false" conditions of templates are executed by MW's parser in every case (it's documented behavior of MW's parser) - just the output of false conditions would be dropped (not being shown).
Markus probably considers using better caching mechanisms for ask queries, however it's not implemented yet. Maybe you could try running MW behind squid accelerator, I've seen it mentioned somewhere at http://mediawiki.org Also, maybe you should move MySQL database to dedicated server. Dmitriy ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Semediawiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
