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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:21:16+00:00 2026-06-03T06:21:16+00:00

Hi I have data in a csv file format that Id like to import

  • 0

Hi I have data in a csv file format that Id like to import into my postgresql. The postgresql would be used in my rails app as a prepopulated db. I realize rails uses a ORM . So I was wondering if its good to import data into the db like this.

If not how should I do it?

  • 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-03T06:21:17+00:00Added an answer on June 3, 2026 at 6:21 am

    In general, for bulk loading you’ll want to use the COPY interface or, if you can afford downtime and have truly monsterous amounts of data to load, pg_bulkload.

    COPY can be client- or server-side. For client-side COPY your client needs to support it. libpq does, as does the psql client. PgJDBC also supports COPY from client side. I don’t know if Ruby’s database interface does, but I doubt it. If it doesn’t you can use server-side COPY if you have appropriate access permissions on the server, or you can shell out to psql to do the bulk import using the psql \copy command.

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

Sidebar

Related Questions

I have a data file in CSV format that has the some data like
I have a query that returns a lot of data into a CSV file.
I have data stored in a csv file that looks like this: Date,BLOCK,,Wood,Miscellaneous,,Totals,MO Saturday,4055-RU,4055-AR,4091,1139,1158,,100
I have a CSV data file with rows that may have lots of columns
I have to write huge data in text[csv] file. I used BufferedWriter to write
I have a number of images and a CSV data file that I want
I have made a java application that stores data from a .csv file to
I have a .csv file that contains data for only certain columns in a
I have an application that reads a CSV file with piles of data rows.
I have many different csv files that I would like to convert in to

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.