Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8905147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:19:05+00:00 2026-06-15T02:19:05+00:00

I am experimenting with Dojo’s dgrid (which is great!). I am using Nodejs/Mongoose on

  • 0

I am experimenting with Dojo’s dgrid (which is great!). I am using Nodejs/Mongoose on the server side.
I want to write a “log browser”: I have a big mongodb table containing lots of log entries; using dgrid, I want to be able to 1) Filter by certain parameters 2) Paginate using dgrid’s native pagination.

Hence the problem: dojo’s JsonRest stores will send a request like this:

Accept:application/javascript, application/json
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
...
Host:localhost:3000
Range:items=0-24

Hence the problem: it will give a range (that’s all it can do, really) and will display things on the client side according to what it receives from the server.
It’s unrealistic to expect a cliend side JsonRest object to make requests other than “ranges”. However, I am aware that skip/limit doesn’t go very well with Mongoose:

What is the best way to do ajax pagination with MongoDb and Nodejs?

My idea was to render the dgrid, allowing the users to pick filters, and let them happily paginate through their logs. However, the fact that skip/limit are out of question, I am in a bit of a pickle…

Any pearls of wisdom, other than ditch dgrid altogether and implementing pagination on my own without using Dojo stores?

Merc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:19:07+00:00Added an answer on June 15, 2026 at 2:19 am

    Front-end

    The filtering isn’t as feature-full in dgrid as it is in the dojo EnhancedGrid filter plugin so you will probably need to implement that part yourself.

    The good news is you get the paging simply by mixing-in “dgrid/OnDemandGrid” when you create your grid.

    Back-end

    The docs seem to indicate that your best bet for performance is to do some tricks with indices and query based on those to get your ranges.

    You are probably already referencing these, but here they are;
    http://mongoosejs.com/docs/api.html#query_Query-skip
    http://docs.mongodb.org/manual/reference/method/cursor.skip/

    Since log data is usually sequential and rarely modified, you could probably just use a monotonically increasing index for each row of log data and query using those to get the right offset into and count of the rows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I experimenting with writing Vista/W7 gadgets. In my experiment I want to write the
Experimenting with android game development. I'm using PNG format for images, and was wondering
I'm experimenting with ASP.Net Web API, which, by convention, splits controller methods into a
Experimenting with a battery monitor icon at the moment in Python using pygtk and
While experimenting with iPhone app development, we have several AppIDs which should be deleted
I have been experimenting with woopra.com A web analytics tool. Which requires a piece
been experimenting with unordered list UL and i have seem varios examples of using
Experimenting with MongoID on a Rails server and confused about how/where to set the
Experimenting with Swing, I learnt that there are two ways of using JOptionPane and
Im experimenting a bit with jquery and having a big problem which i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.