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

  • SEARCH
  • Home
  • 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 7646107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:07:23+00:00 2026-05-31T10:07:23+00:00

I am inserting 1,00,000 records into databse through background thread.at this time when I

  • 0

I am inserting 1,00,000 records into databse through background thread.at this time when I want load Ui screens I am getting Out of memory error.For example When the Heap size is 5 MB and 4MB is allotted to background threads,2 MB is required for loading UI screen.So in this scenario I am getting Out of memory issue.Please tell me what I need to do here to fix out of memory issue.

  • 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-05-31T10:07:25+00:00Added an answer on May 31, 2026 at 10:07 am

    Try inserting 100 at a time instead of 1,000 at a time. That should cut your background thread’s memory usage by quite a bit.

    If your records are coming from the server as XML, don’t use a DOM parser; it is a memory hog. Use a SAX, StAX, or pull parser instead.

    Finally, be sure that you aren’t keeping references to objects that you don’t need once the records are inserted.

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

Sidebar

Related Questions

I'm inserting multiple records into a table A from another table B. Is there
I am inserting circa 500 000 objects into database, where many of them are
I have two tables that i am inserting records into. I am using PHP
I have data containing about 30 000 records. And I need to insert this
Right. I was inserting a load of data into a MySQL DB and used
Before inserting data into table i need to check against duplicate records and report
(Database: Oracle 10G R2) It takes 1 minute to insert 100,000 records into a
I have a Silverlight web application. I am inserting records into a table (SQL
I want to insert values into a SQL Server table, but every time I
This is a pretty simple problem. Inserting data into the table normally works fine,

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.