What are your top 3 XPages performance tips for new XPages developers?

后端 未结 6 1209
清歌不尽
清歌不尽 2021-02-06 15:43

What 3 things would you tell developers new to XPages to do to help maximize the performance of their XPages apps?

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-06 16:29

    The basics like

    1. Use the immediate flags ( or one of the other flags) on serverside events if possible
    2. Check the Flag which (forgot its name..) generates the css and js as one big file at runtime therefore minimizing the ammount of requests.
    3. Choose your scope wisely. Dont put everything in your sessionscope but define when, where and how your are using the data and based on that use the correct scope. This can lead to better memory usage..

    And of course the most important one read the mastering xpages book.


    Other tips I would add:

    1. When retrieving data use viewentrycollections or the viewnavigstor
    2. Upgrade to 8.5.3
    3. Use default html tags if possible. If you dont need the functionality of a xp:div or xp:panel use a
      instead so you dont generate an extra uicomponent on the tree.
    4. Define what page persistance mode you need

提交回复
热议问题