Skip to content
Franco Mussopower pages
Raindrops hanging from a ceiling
Photograph · Wang Yifang / Unsplash
Guide No.036
TutorialMultimedia

Optimising the performance of Dataverse Image columns in Power Pages

First of all, I love the idea of Dataverse image columns in Power Pages.

Level
04ArchitectStage 4 of 4
Read
2 min
Includes
4 figures
Written
Sep 2024

First of all, I love the idea of Dataverse image columns in Power Pages. Having structured data around our images, being able to easily output in lists and forms or retrieve with fetch XML / the entities object for custom UI work, etc. All good… in theory. See my post here for why I think they’re so awesome

Gotcha!

The main drawback has always been the slow performance compared to the other image sources available to us; note attachments, Azure blob or even images hosted on an external service like ImageKit.

Why so slow?
Using the image URL provided in liquid gets the image from a download.aspx endpoint and that round-trip is typically slow.

The experiment

I experimented with various things;

Test results – for the nerdy among us…

144px x 144px thumbnails with download.aspx
A total of 8.37 seconds. The worst performance there being 2.98s for a 144px x 144px image!

DevTools
Screenshot of browser developer tools for experiment 1
Fig. 01Browser developer tools for experiment 1

144px x 144px thumbnails with direct links and the web API
A total of 3.78 seconds… less than half the time to retrieve the exact same images

DevTools
Screenshot of browser developer tools for experiment 2
Fig. 02Browser developer tools for experiment 2

Full size images with download.aspx
10.24 seconds

Power Pages
Fig. 03

Full size images with direct links and the web API
5.36 seconds

DevTools
Screenshot of browser developer tools for experiment 4
Fig. 04Browser developer tools for experiment 4

And the winner is…

Using the web API URL, we can link directly to the image without the delay of download.aspx. This is what proved to be the fastest in my testing.

Here’s an example of the image source format:
Before (as provided by Fetch XML or entities object and used in form / list output):
https://propilot-prep.powerappsportals.com/Image/download.aspx?Entity=pp_pilots&Attribute=pp_picture&Id=a2959f59-e56e-ef11-a670-0022480a94ca

After
/_api/pp_pilotses(a2959f59-e56e-ef11-a670-0022480a94ca)/pp_picture/$value?size=full

Conclusion

Although it’s slightly more effort including the web API and crafting the URLs ourselves, the performance gains are well worth it. (See here for how to include and authenticate with the web API)

Go deeper · Power Pages Mastery

This guide is one technique. The course is the method.

The course covers this in Level 1 · Foundations: “Document management approaches”, alongside “Data modelling for external users”. A structured programme distilled from dozens of real portal launches — from messy stakeholder requirements to successful go-live.

  • 6 weeks
  • 3 levels
  • Live training + video lessons
Where this fits
  1. Level 1Foundations
    • Document management approaches
    • Data modelling for external users
  2. Level 2Extending the platform
  3. Level 3Advanced customisation
Francesco isn’t just a Power Pages expert — he’s also an exceptional educator. I wholeheartedly endorse this course as the ideal resource for anyone eager to accelerate their career in Power Pages.
Safwan Karim — Senior Consultant — Accelerate Tech
Filed underMultimedia

Comments

No comments yet. Spotted a gotcha I missed? Say so below.

Leave a comment

Your email address won’t be published. Comments are moderated.

Consulting

Need a Power Pages build that editors love and brands survive?

I help teams design and build Power Pages sites with bespoke UX. Tell me about yours.

Search

Book a discovery call

30 minutes. Bring your trickiest Power Pages problem — I’ll tell you honestly whether I’m the right fit.