Giter Site home page Giter Site logo

Comments (6)

mkrogemann avatar mkrogemann commented on May 18, 2024

i guess you are experiencing what has been described in #24 and #25.

from kaminari.

FlyboyArt avatar FlyboyArt commented on May 18, 2024

Perhaps but I'm not in control of Kaminari issuing the select count command with the offset. What can I do in my code to circumvent this? It's not obvious to me after reading both #24 and #25

from kaminari.

mkrogemann avatar mkrogemann commented on May 18, 2024

this is not ideal, just a workaround... but it works for me

@Clients = Client.order(:id).page(params[:page]).per(50)

@clients.all.count

from kaminari.

FlyboyArt avatar FlyboyArt commented on May 18, 2024

Works! Thanks for helping me work around this. It may be a problem in MySql however from a consumer of kaminari, it should be transparent to the user (i.e. me) what is workaround has to happen. Thanks so much for the prompt reply and help! Much appreciated.

from kaminari.

mkrogemann avatar mkrogemann commented on May 18, 2024

glad i could help. I think this has nothing to do with mysql. I'm using postgres and see the same problems here.

from kaminari.

dtuite avatar dtuite commented on May 18, 2024

I had this exact same problem with Kaminari and postgreSQL. The fix described above worked for me also.

from kaminari.

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.