Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Seeding a Sqlite DB from a 100,000 item hash taking forever! Is there a faster way?
Post Body

So I have a DB with 20 columns of so and a hash with 100,000 items in it. I've been iterating through each item item in the hash and executing 'create!' to write it to the DB.

Of course this is locking the doing 1 write at a time and locking the DB until the next write (at the rate of about 1 or so a second). I get the feeling there has got to be a better way of doing this!

Any advice?

Author
Account Strength
90%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,050
Link Karma
195
Comment Karma
855
Profile updated: 3 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
12 years ago