Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:00:39+00:00 2026-06-10T22:00:39+00:00

I have a datatable that contains over 10 000 rows. When, I do :

  • 0

I have a datatable that contains over 10 000 rows.

When, I do :

Dim oTable As New System.Data.DataTable
' .....
' Filling the DataTable
' .....
oTable.writeXml("MyFile.xml")

Do the writexml() uses memory or HardDrive ?

I tested, and I find out that it uses a lot of memory.

Writing a file normally uses FileStreams. So it should not uses memory.

Am I wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:00:41+00:00Added an answer on June 10, 2026 at 10:00 pm

    I don’t think WriteXML eating memory is normal. Just tested with 287,120 rows in a table (exported XML is nearly 200MB in size) – memory usage stayed the same. It took around 1.2GB to load this table into memory, and then open it in the editor. After running WriteXML memory consumption stayed the same during those 4-5 seconds, maybe going up and down by 1MB.

    How are you filling the DataTable? If you are using some lazy loading techniques, that may explain high memory usage, but that would be not by WriteXML, and rather by the data itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a datatable that contains rows of transaction data for multiple users. Each
I have a DataTable object that contains all the data for a Table visualization.
I have a column inside a <rich:dataTable> that contains <a4j:commandButton> for deleting rows. Deleting
I have a DataTable that contains 4 rows. I want to compare a value
I have a DataTable that I manually created and loaded with data using C#.
This is tricky to explain. We have a DataTable that contains a user configurable
I have a session object that contains a DataTable from my previous page, and
I have a DataTable that contains a multi-select choice field (string). Values in the
I currently have a Richfaces dataTable bound to a backing bean that contains all
I have a datatable that contains a column as Column-A. Now if that column

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.