Giter Site home page Giter Site logo

Comments (9)

pnomolos avatar pnomolos commented on August 18, 2024

from upsert.

KevinColemanInc avatar KevinColemanInc commented on August 18, 2024

@pnomolos

If you're just changing the name, this will make your gem difficult to use with rails b/c the alter table would not be reflected in your schema.rb file which most rails projects use to define the schema.

from upsert.

KevinColemanInc avatar KevinColemanInc commented on August 18, 2024

Why does the unique index not work?

from upsert.

pnomolos avatar pnomolos commented on August 18, 2024

from upsert.

pnomolos avatar pnomolos commented on August 18, 2024

from upsert.

KevinColemanInc avatar KevinColemanInc commented on August 18, 2024

that is so lame. Yes, please add a note. I spent 3 hours poking at this gem trying to figure out why inserting 60k rows took 30 minutes on my dev machine.

The only other thing that was slow was the batch not batching the network calls.

from upsert.

pnomolos avatar pnomolos commented on August 18, 2024

What’s your setup? It’s very curious that it’s taking that long - even on my 2011 MBP it’s faster than that. If every call is over the network, though, that would make sense.

from upsert.

KevinColemanInc avatar KevinColemanInc commented on August 18, 2024

I misread the csv file. When I opened it up in "Apple Numbers", ignored the warning of "there are 1,400,000 rows, but we are only going to show 65k".

On my 2016 MBP with pg running locally and 16GB ram, 1.4m records with use_pg_native? as true takes 26 minutes, which is more understandable.

===

I made #112 to add a warning if use_pg_native? is false

from upsert.

pnomolos avatar pnomolos commented on August 18, 2024

Closed via #112

from upsert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.