Coder Social home page Coder Social logo

Comments (8)

singhravi1 avatar singhravi1 commented on June 2, 2024 1

Okay. So iterator was removed and then re-introduced?
Cause prefetch-related was working when i used one of the 6.x.x version

from django-elasticsearch-dsl.

rabbagliettiandrea avatar rabbagliettiandrea commented on June 2, 2024 1

Wow guys, thank you so much for this issue!
What I was looking for is just:

def get_indexing_queryset(self):
    return self.get_queryset()

with this I can optimize my code with prefetch_related()! :)

from django-elasticsearch-dsl.

GeorgeLubaretsi avatar GeorgeLubaretsi commented on June 2, 2024

Is this fixed by #29 ?

from django-elasticsearch-dsl.

Grendel7 avatar Grendel7 commented on June 2, 2024

Yes, I believe this issue is fixed now with #50

from django-elasticsearch-dsl.

singhravi1 avatar singhravi1 commented on June 2, 2024

I'm facing this same issue with v7.1.0 .
What could be the reason?

from django-elasticsearch-dsl.

safwanrahman avatar safwanrahman commented on June 2, 2024

@singhravi1 Are you facing it while running the management command?

from django-elasticsearch-dsl.

singhravi1 avatar singhravi1 commented on June 2, 2024

@safwanrahman Yes, i tried with both, rebuild and populate

from django-elasticsearch-dsl.

safwanrahman avatar safwanrahman commented on June 2, 2024

@singhravi1 This is expected behavior as we are using iterator for optimization. You can overwrite the get_indexing_queryset in order to remove the iterator and get the prefetch related functionality

from django-elasticsearch-dsl.

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.