web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Best practice for OnlyFetchActive

(0) ShareShare
ReportReport
Posted on by 245

Is there general guidance on when and when not to set OnlyFetchActive to true?  In profiler I can see several queries executing that have 50+ columns, but can't imagine all of them are being used.  I remember in the past enabling it for one data source which improved performance quite a bit, thus wondering if I should continue to do this for the many other data sources we have.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,688 Most Valuable Professional on at

    If you look into AX documentation, you'll see that "this property is designed to be used in lookup forms" (source), which is confirmed in Best Practices for Lookup Forms.

    The reason why it's not recommended for all forms it that you can easily get into problems when saving records with just some fields fetched (impossible in lookup forms) and with code referring to fields which weren't fetched from DB (such code isn't common in lookup forms).

    If you always fetch fields from many datasources, maybe you should redesign your form. Nevertheless 50 columns isn't normally a big deal, if we're not talking about memo fields or such things.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
Nagendra Varma K Profile Picture

Nagendra Varma K 4

#2
Harisgillani Profile Picture

Harisgillani 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans