Git Product home page Git Product logo

Comments (3)

mislav avatar mislav commented on August 17, 2024

Hey Ron,

First of all, check if you have some old version of will_paginate installed:

gem search will_paginate

If there is an old version, you can either uninstall it or make sure that your application loads the correct version by following the instructions in the wiki.

Next, tell me what version of Rails (or ActiveRecord, for that matter) are you using.

Third: does this happen with other tables that aren't so huge?

from will_paginate.

mislav avatar mislav commented on August 17, 2024

Closing for lack of information

from will_paginate.

januszm avatar januszm commented on August 17, 2024

will_paginate kills development server when using with large (7.5 mln records) table

$ rails server
=> Booting WEBrick
=> Rails 3.0.9 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-07-13 14:49:39] INFO  WEBrick 1.3.1
[2011-07-13 14:49:39] INFO  ruby 1.9.2 (2010-12-25) [x86_64-linux]
[2011-07-13 14:49:39] INFO  WEBrick::HTTPServer#start: pid=9928 port=3000
Killed

articles_controller.rb

@articles = Article.paginate :page => params[:page]

article.rb model

  cattr_reader :per_page
  @@per_page = 10

index.html.erb

<%= will_paginate @articles %>

from will_paginate.

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.