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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:57:37+00:00 2026-06-05T22:57:37+00:00

learning the basics of Python, now ready for a bigger challange… it didn’t take

  • 0

learning the basics of Python, now ready for a bigger challange… it didn’t take long to stumble 🙂

I’m writing a basic allocation app that imports rows of “jobs” and then allocates each to a “contractor” based on contract conditions.

My first hurdle is, do i import the data directly into the db (using postgres) or into an object? I’m just a bit lost because the next step would then to parse the data for correctness… so should it be done once the data is stored or while in memory????

Steve

  • 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-05T22:57:38+00:00Added an answer on June 5, 2026 at 10:57 pm

    Loading data directly into any database should only be done if the data is reliable and trustworthy – so either from a backup or after being sanitized.

    I would recommend reading your file in Python using either csv or pandas – depending on how complicated the layout of the file is.

    You can then sanitize and parse the data and prepare it for the database.

    Python provides a universal interface to all supported databases called the DB API. This wiki entry explains how to use it with Postgres.

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

Sidebar

Related Questions

I started learning Python through some books and online tutorials. I understand the basic
I have a very basic problem. I am learning my first steps with python
Fairly new to python, forgive me if this is a basic question about learning
I'm a novice programmer with basic Java experience, and currently learning Python. I've stumbled
while learning some basic programming with python, i found web.py. i got stuck with
I'm currently learning the basics in Python, and I need to create a name
I'm learning basic Boolean logic with Python. I understand the equality operators but get
I am learning basics of EJB 3.0. I have managed to get a sample
I am learning the basics of version control and KDE development, using QtCreator. I
I found this question that was very useful in learning the basics of the

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.