What makes Domino Designer slow when developing xPages? - some observations ...

David Marko  19 September 2011 08:48:12
We have been working on some real-life projects using xPages recently and we have done some observations on Domino Designer slowness of xPages editor. DDE is very slow for xPages development in general (all the 'building workspace' delays :-( ) but we found out that sometimes its much worse ...

I would like to mention two cases, maybe they can help you as well ...
a) you have the view datasource on xPage pointing to database and view with many, many documents.

- seems like the Domino is maintaining and refreshing the connection to view in xPages editor and when view is slow to refresh then the entire xPage is very slow in dev mode. For some huge views we encountered extreme slowness of xPages editor. Type frequency into source editor was one char per 10 second ... sometimes even worse. By simply removing view datasource solves the problem. But you probably need the datasource ... so we changed the view datasource's database and view properties to computed ones and moved code to our java code(we use managed beans aka singleton pattern helpers). Since that Domino cant reach the view in development mode so slowness disappeared.

b) you have JavaScript or CSS resources on xPages pointing to external files

- we were developing xPages application for mobiles using JQuery Mobile library. We have added some CSS and JS resources on xPage and  linked  them directly to CDN. In HTML you will get something like:

... script src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js" ...

But having this in xPage's resources causes extreme slowness when working in source code editor. Cant understand why it is, when we removed this resources, everything was fine. Then we downloaded the all linked libraries, put these into database and made xPages resources pointed to these local files ... and speed was still fine. So the moral here is this: don't use external resources ...

and both observations were made on Domino Designer 8.5.2FP2 and 8.5.3CD5 with the same results.

I still have many, many questions regarding the overall speed. Just mentioning one: Why is Designer refreshing/building workspace(slow process) every time I update CSS file or JavaScript library file? These are totally independent on xPage or other code ... these are just simple text files. So why I have to wait 10 seconds to see CSS update in browser waiting on 'building workspace' process to finish. :-( Do some CSS refinements requiring 30 CSS file updates in hour and this entire slowness makes you crazy ...

Image:What makes Domino Designer slow when developing xPages? - some observations ...
TOPlist