CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 14:19:54 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20180610234043
location: https://web.archive.org/web/20180610234043/https://github.com/maddox/import_with_load_data_in_file
server-timing: captures_list;dur=0.780676, exclusion.robots;dur=0.028215, exclusion.robots.policy;dur=0.012737, esindex;dur=0.018066, cdx.remote;dur=35.492079, LoadShardBlock;dur=243.115973, PetaboxLoader3.datanode;dur=101.785155, PetaboxLoader3.resolve;dur=58.793081
x-app-server: wwwb-app220
x-ts: 302
x-tr: 309
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app220; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 03 Aug 2025 14:19:55 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Sun, 10 Jun 2018 23:42:23 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-status: 200 OK
x-archive-orig-cache-control: no-cache
x-archive-orig-vary: X-PJAX
x-archive-orig-set-cookie: logged_in=no; domain=.github.com; path=/; expires=Thu, 10 Jun 2038 23:42:23 -0000; secure; HttpOnly
x-archive-orig-set-cookie: _gh_sess=NldYdXNPb3pheXdqY3lQUWxFcnZFQlNNK2FIZVRjL0tqVU9oQ3E0T2x0ME51cHJQMERWZlZJOFR5VU5TNTA0VGNUWTgrZmdTYWJ6TW1tV0sxTk9lblNRVWIzS0V2aVNHdjRZcHd3cmdzVkJXUlQ4azJ4cHVvdEY5L3h0cEdNekk5S0FYeEloVWszd3RPVjhIYVlHM3hLOUE5T3ppazJxTVNEbUYxOXp6c3lIbTNySFlCR3lkK0kveGo1UkU4WmZabUFlMk9HVjU0UzBOVXA5NE1NWUZPMmc4MGlGUTNoZUJYZHcrUmY1UGJjZ2lVS0JpU2F6bENxNEQ3UllpUHdudUVaeWxLYTJSYTJnTk5FODBXN1M3UElNK21KVjMzQUJXSGdIWXVRTjVERE5hNHJQOFZTUmFZdjYrazhldG9ZV1lNWWJoK3kxb2FhWEVoSlZBVWpXaEFKUmYzeXBBSjVJQU96UE1EYkd1am9MZGlyMmorZGhQcytBVXdJOUgzYlU5M3pmeUpwdDJSRFBNbmttdmpUUkxjOE9RRXhTYW5NTngxSFhuK1NGL3lYMzhvT0hzcWFJLzJ4RlVRUHh2NXVkWi0tdDFvaXlIRTZTSi9FMWVQTzkrS1pJdz09--c2b44f45e628122a5121d94e465be03d1dfc9b03; path=/; secure; HttpOnly
x-archive-orig-x-request-id: 05d31e6d-dc44-4fe8-9bc8-2d89dac80c56
x-archive-orig-x-runtime: 0.242900
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 1; mode=block
x-archive-orig-expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
x-archive-orig-x-runtime-rack: 0.250947
x-archive-orig-x-github-request-id: C6F8:69B9:426A097:7D28D41:5B1DB75F
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 10 Jun 2018 23:40:43 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 10 Jun 2018 23:40:43 GMT", ; rel="memento"; datetime="Sun, 10 Jun 2018 23:40:43 GMT", ; rel="next memento"; datetime="Sat, 05 Dec 2020 19:03:51 GMT", ; rel="last memento"; datetime="Sat, 05 Dec 2020 19:03:51 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: archiveteam_github_20180703104800/archiveteam_github_20180703104800.megawarc.warc.gz
server-timing: captures_list;dur=0.472758, exclusion.robots;dur=0.016972, exclusion.robots.policy;dur=0.007480, esindex;dur=0.008889, cdx.remote;dur=41.626636, LoadShardBlock;dur=147.793403, PetaboxLoader3.datanode;dur=96.582884, PetaboxLoader3.resolve;dur=539.457621, load_resource;dur=506.844668
x-app-server: wwwb-app220
x-ts: 200
x-tr: 793
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
GitHub - maddox/import_with_load_data_in_file: Ruby on Rails plugin that leverage the MySql "LOAD DATA IN FILE" feature to quickly insert large amounts of data into a table
Fetching latest commit…
Permalink
Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Ruby on Rails plugin that leverage the MySql "LOAD DATA IN FILE" feature to quickly insert large amounts of data into a table
https://paolodona.com/tags/import_with…
Clone or download
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching Xcode...
If nothing happens, download Xcode and try again.
Launching Visual Studio...
If nothing happens, download the GitHub extension for Visual Studio and try again.
Pull request
Compare
This branch is even with paolodona:master.

Cannot retrieve the latest commit at this time.
Failed to load latest commit information. | |||
![]() |
lib | ||
![]() |
test | ||
![]() |
.gitignore | ||
![]() |
MIT-LICENSE | ||
![]() |
README | ||
![]() |
Rakefile | ||
![]() |
init.rb | ||
![]() |
install.rb | ||
![]() |
uninstall.rb |
README
ImportWithLoadDataInFile ======================== This plugin allows you to bulk import records into a table using mysql's 'LOAD DATA INFILE' feature. It is very similar to ar-extensions import feature, but it seems to be about 30% faster. all it does is: - take a list of columns and a 2D Array with the column values - create a tempfile and put a csv representation of the data in it - call mysql's LOAD DATA INFILE against the temp file Example ======= # Table name: users # # id :integer(11) not null, primary key # name :string(20) # surname :string(32) # class User < ActiveRecord::Base # you need to include this module include ImportWithLoadDataInFile end cols = [:name, :surname] vals = [["paolo", "dona"], ["james", "dean"]] User.import_with_load_data_infile(cols, vals) # this generates a LOAD DATA LOCAL INFILE statement # if your db is on the same machine of the app server, you can switch off the LOCAL flag User.import_with_load_data_infile(cols, vals, :local => false) # this generates LOAD DATA INFILE
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.