This, that and the other (may contain nuts)

WebQueryOpen Agents - The penny drops

Steve Castledine  15 August 2007 10:45:00
Its been discussed at Codestore and I also see an entry at Domino2 today. Repeat after me "WebQueryOpenAgents do not have to be bad". Developers make them bad, by not thinking through the load they put on them.

Some Myths:

1) Performance Issues - maybe R5 - but we have had a solid R6, R7 and forthcoming R8 since (this Friday - yay).
2) Held back because they are controlled by the "Agent Manager" - no they are looked after by the HTTP Task.

I have researched, tested and used these agents for years now. I have never come across a problem. Just think smart. Don't go accessing loads of views, crunching too many documents if you don't need to.

For example on this site (which uses a WebQueryOpenAgent - shock horror) there are counts for categories etc. The database knows those counts when you save documents, so you don't need to do that count for each and every page hit. Do some caching of data instead, thats how portal server's bump up performance, they pre cache html that they know they will have to deliver lots.

Image:WebQueryOpen Agents - The penny drops