module Blazer
class QueriesController < BaseController
...
def home
set_queries(1000)
But in home.html.erb, we only only show 200
computed: {
visibleItems: function () {
// hack to get to update
this.updateCounter
var pageSize = 200
Which means if you have more than 200 queries, this line :
307: @more = limit && @queries.size >= limit
Will return false effectively turning off pagination. So the only way to make pagination work after you make more than 200 queries, is to make 1000 queries.
Or we make the Rails SetLimit(n) == the Pagination limit in the JS
I believe this is easily remedied.
We have a limit set at (1000)
But in
home.html.erb
, we only only show200
Which means if you have more than 200 queries, this line :
Will return
false
effectively turning off pagination. So the only way to make pagination work after you make more than 200 queries, is to make 1000 queries.Or we make the Rails SetLimit(n) == the Pagination limit in the JS