marklogic-community / slush-marklogic-node

Slush generator for a MarkLogic/node project
https://github.com/marklogic-community/slush-marklogic-node/wiki
Other
40 stars 28 forks source link

Opening / rendering big documents on the detail page takes forever #551

Open sashamitrovich opened 6 years ago

sashamitrovich commented 6 years ago

In a lot of POCs where we load customer data, the documents are often very big - up to hundreds of pages and 10s of MBs.

Consider introducing pagination or similar to speed up rendering of such documents.

sashamitrovich commented 6 years ago

@grtjn commented:

the ui-router for root.detail contains a resolve that does an MLRest.getDocument.. that will fetch the entire doc before it starts showing the page.. if you move the getDoc to inside the detail.ctrl, at least the page can be shown.. and you can then also consider applying a transform for xhtml specifically that fetches a limited number of p's..