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 7713315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:50:43+00:00 2026-06-01T01:50:43+00:00

I am developing a test application that requires me to insert 1 million records

  • 0

I am developing a test application that requires me to insert 1 million records in a Postgresql database but at random points the insert stops and if I try to restart the insertion process, the application refuses to populate the table with more records. I’ve read that databases have a size cap, which is around 4 Gb, but I’m sure my database didn’t even come close to this value.

So, what other reasons could be for why insertion stopped?

It happened a few times, once capping at 170872 records, another time at 25730 records.

I know the question might sound silly but I can’t find any other reasons for why it stops inserting.

Thanks in advance!

JUST A QUICK UPDATE:

Indeed the problem isn’t the database cap, here are the official figures for PostgreSQL:

- Maximum Database Size                 Unlimited
- Maximum Table Size                    32 TB
- Maximum Row Size                      1.6 TB
- Maximum Field Size                    1 GB
- Maximum Rows per Table                Unlimited
- Maximum Columns per Table             250 - 1600 depending on column types
- Maximum Indexes per Table             Unlimited

Update:

Error in log file:

2012-03-26 12:30:12 EEST WARNING: there is no transaction in progress

So I’m looking up for an answer that fits this issue. If you can give any hints I would be very grateful.

  • 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-01T01:50:44+00:00Added an answer on June 1, 2026 at 1:50 am

    I found out what was the problem with my insert command, and although it might seem funny it’s one of those things you never thought could go wrong.

    My application is developed in Django and has a command that simply calls for the file that does the insert operations into the tables.

    i.e. in the command line terminal I just write:

    time python manage.py populate_sql
    

    The reason for which I use the time command is because I want to see how long it takes for the insertion to execute. Well, the problem was here. That time command issued an error, a Out of memory error which stopped the insertion into the database. I found this little code while running the command with the –verbose option which lets you see all the details of the command.

    I would like to thank you all for your answers, for the things that I have learned from them and for the time you used trying to help me.

    EDIT:

    If you have a Django application in which you make a lot of operations with the database, then my advice to you is to set the ‘DEBUG’ variable in settings.py to ‘FALSE’ because it eats up a lot of your memory in time.

    So,

    DEBUG = False
    

    And in the end, thank you again for the support Richard Huxton!

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

Sidebar

Related Questions

I am developing an application in classical ASP that now requires sef urls. I
I am developing a document database application that handles TIFF images. When annotating images,
I'm developing an IPad application that use a prefeatched database with a synchronisation feature
I am developing a PHP application using our XAMPP setup as a test server.
I have this JUnit test that I need help developing a Interface and Class
I am developing a browser application that is sensitive to the current date. Throughout
I am developing an application that computes the distance travelled by the person. I
I've been implementing a GWT application that calls a REST-service (which we're also developing).
I am developing a test application and running the whole thing on my work
I am developing a library and an application that uses the library in Python

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.