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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

EntireTable caching change or workaround

(0) ShareShare
ReportReport
Posted on by

Hi,

As we all know set-based caching in FnO caches all the table contents at Server side, according to documentation - https://docs.microsoft.com/en-us/dynamicsax-2012/developer/set-based-caching?redirectedfrom=MSDN

Question - how to change cacheLookup property value in std. table .i.e. TaxTable from EntireTable to any other? It is not possible via extensions.

The thing is, this table holds 2 million records and takes almost 10 minutes to cache it on first query after IIS reset or cache flush (which happens every 24 hrs or on insert/update/delete). It's a huge performance hit, especially for integrations when requests times out because of that.

As a work around I thought to make a batch which would select any first record from TaxTable to explicitly force caching, after AOS comes up by hooking to delegate (https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/startup-customizations) or to CacheFlush event. And all is good there, execution takes almost 10 minutes to select the record in batch, it makes a cache, but - whenever I open TaxTable from FnO UI or make any action which queries TaxTable - again it takes 10 minutes to load the data to cache. It means only one - there are two places where tableCache is stored - one is for batch, another for user sessions or isn't it?. AOS server is one box!  

Is it a bug? How can I force batch job to update table cache for UI sessions?

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: EntireTable caching change or workaround

    Most likely there's no way to change how it works. It seems that you are using the table to something else than what it was designed for, and now you are having this issue.

    If you want to share any details, perhaps we can suggest workarounds for getting out of that situation.

  • v-argruo Profile Picture
    on at
    RE: EntireTable caching change or workaround

    Don't ask why, It is just how everything is designed and whole solution is built on that. Question is how to change caching or workaround it.

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: EntireTable caching change or workaround

    Not sure if I can help, but just out of curiosity, how come your TaxTable have 2 million records? It means you have 2 million sales tax codes? Are you using it for something else than storing tax codes?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 895

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 811 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 787 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans