Giter VIP home page Giter VIP logo

Comments (4)

xnick avatar xnick commented on May 27, 2024

From my limited understanding, it looks like it's the by-default enabling of return_rows_bulk_insert that could be the culprit, but setting it to False doesn't have any effect on the query produced. Neither with the code I posted above, nor when using cls.objects.bulk_create(table).

from mssql-django.

mShan0 avatar mShan0 commented on May 27, 2024

Hi @xnick, I think you're correct. We've changed the default value back in the dev branch. Can you try it out there and see if that resolves your issue?

from mssql-django.

xnick avatar xnick commented on May 27, 2024

Hello, thanks for the suggestion.

I can confirm that the dev build works fine. Just out of curiosity, I enabled return_rows_bulk_insert and the problem appeared again.

Does return_rows_bulk_insert provide a significant speedup? Is it worth it enabling it and overriding this snippet with a custom insert, I wonder?

Thank you!

from mssql-django.

mShan0 avatar mShan0 commented on May 27, 2024

I don't believe there's a performance benefit. The dev build will be released next month with the default value changed back.

from mssql-django.

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.