[[Has Model::x]] is not an ask, it's an annotation. My general rule of thumb is to absolutely minimize the nbr of asks a page performs.
-----Original Message-----
From: Sal Quintanilla [mailto:salquint@gmail.com]
Sent: Friday, March 15, 2013 7:44 AM
To: 'Jeroen De Dauw'
Cc: 'Semantic MediaWiki developers'
Subject: Re: [SMW-devel] arraymap versus #ask performance

It looks like a bunch of these:


* {{#arraymap:{{{Model|}}}|,|x|[[Has Model::x]]}}


From: Jeroen De Dauw [mailto:jeroendedauw@gmail.com]
Sent: Friday, March 15, 2013 7:52 AM
To: salquint@gmail.com
Cc: Semantic MediaWiki developers
Subject: Re: [SMW-devel] arraymap versus #ask performance



> or will the asks be fast simply because it’s querying the loaded page?

All queries are run against the store. The page you are on has no affect. Running a query twice will have twice the cost of running it once. We have no smart caching going on here yet. MWJames has been poking at that a while back though this has not gone into the code base yet AFAIK.

> If I replace all my arraymaps with {{#ask: [[{{PAGENAME}}]]'s

I'm not sure what your arraymap approach actually looks like so cannot answer this.


Jeroen De Dauw
Don't panic. Don't be evil.