RubyFlow The Ruby and Rails community linklog

Superfast CSV imports using PostgreSQL's COPY

When you need to import data through CSV files there’s more than one gem that can help you do the job. But what if you need to import large CSV files (~100MB / ~1M rows)?

PostgreSQL has a really powerful yet very simple command called COPY which copies data between a file and a database table.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in