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 :
Microsoft Dynamics AX (Archived)

Insert records in table

(0) ShareShare
ReportReport
Posted on by 28

Dear All,

If i insert huge records in table then it will cause of memory consumption?

Please give me more shed on this.

Thanks!

Arpan Sen

*This post is locked for comments

I have the same question (0)
  • @rp@n Profile Picture
    28 on at
    RE: Insert records in table

    Hi Faisal,

    Can you please let me know how i can clear record after insertion.

    Arpan

  • @rp@n Profile Picture
    28 on at
    RE: Insert records in table

    Thanks Vilmos

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Insert records in table

    We have no insight on how AX kernel consumes memory, since we have no source code access to that. There is an internal garbage collector that periodically cleans up memory space used.

    These are the publicly available information on the topic:

    blogs.msdn.microsoft.com/.../1-the-garbage-collector-in-x-and-the-clr

    blogs.msdn.microsoft.com/.../memory-usage-in-xppil-code

    Whether your specific code consumes memory or not highly depends on what exactly you have in your code. Temporary tables, objects like Map or Set, or simply reading in large amount of information which can cache table data locally might all bump your memory usage. I'd say it is the table cache without seeing code.

  • Faisal Fareed Profile Picture
    10,796 User Group Leader on at
    RE: Insert records in table

    Which memory consumption you are concerning about? Insert_recordset uses record list you can clear after record insertion however it flashes automatically I reckon.

  • @rp@n Profile Picture
    28 on at
    RE: Insert records in table

    Thanks Faisal,

    During inserting time it will make a database call. But after completing inserting operation it will  consume memory?

    Please give me more shed on this.

    Thanks!

    Arpan Sen

  • Verified answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at
    RE: Insert records in table

    Hi Arpen,

    For bulk insert use insert_recordset it will make a database call once led to improve performance.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans