Code Monkey home page Code Monkey logo

Comments (3)

cajuncoding avatar cajuncoding commented on June 3, 2024 1

That error is not a bug…it’s a limitation of SQL Seever where only 2100 parameters can be sent in a single query…by parameters it’s referring to arguments that begin with @.

RepoDB is automating that for you and using parameters, for every field value for every entity/record, just as it should to avoid SQL injection risks! However it does not do a bounds check so your just passing in too much data into that method….every field on every record is resulting in a variable/param.

You should look into the BulkInsert API (RepoDB provides this also) as a much more reliable way to send large amounts of data in the fastest way possible…InsertAll is for smaller batches of dozens of records…if you have hundreds or thousands then BulkInsert is more appropriate.

from repodb.

sipi41 avatar sipi41 commented on June 3, 2024

thank you @cajuncoding! like I said, I was monkeying with it... I want to point out that the mention was not "parameters" but "batch", I thought it was a record, an entry, not a single field value. Thank you for your good advise! :-)

from repodb.

mikependon avatar mikependon commented on June 3, 2024

Thanks @cajuncoding. @sipi41 yes, please the real Bulk Operation if you have such requirement.

from repodb.

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.