-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pagination on atmosphere #42
Comments
@tmeasday - we'll handle this one if you're cool with that. |
Awesome! |
Hi @tmeasday, We've been going over solutions for this and devised a couple different options. Before proceeding, we'd like some thoughts from the community.
This is really more a question on performance and making sure we build something that can scale. Do you have any specific preference, or thoughts on the proposed solutions? |
Hi @spyrosk, I think it has to be 1., although I can see the argument why, with essentially static data, it feels a bit painful. Here are some of my thoughts: a) A large proportion of clients will use the same query (page 1, no search). b) The majority of users aren't going to stick around for very long. c) There'll be a potential memory cost of having a lot of search subscriptions open, but my guess is it'll be OK, given b). d) I wouldn't worry about CPU costs as the data doesn't change very much. e) Doing it client side is rapidly becoming infeasible - even with only 414 packages, it already takes me about 5-10 seconds to load the data over the wire. (Although it's possible we are sending more data than is needed to the client in the packages collection and this number could be reduced a fair bit - we should fix this either way). I don't know if you have already, but you should take a look at the paginated subscription package that we use for Telescope (and in the book). Also I believe there are a couple of other pagination packages on atmosphere that are probably worth a look. |
Hi @tmeasday Thanks for the feedback, we'll get right on this. |
Hi @tmeasday , I've implemented the separate subscriptions to implement the pagination, however I'm having some trouble getting the search keywords to work. Could you please have a quick look at my code and see if you have any guidance for me? As this isn't ready for merging I didn't create a pull request, but please let me know if you'd like me to. Here is a link to the branch where I've implemented my changes: https://github.com/spyrosk/atmosphere/tree/issue-42 Thank you. |
Hey @spyrosk, Looks like a good start. Here are some comments:
|
@tmeasday @spyrosk Where did you land on this one? I'm having difficulties viewing the main page of Atmosphere right now - CPU is loaded for 25% (full load on one core) once I go to |
@yeputons I believe this issue is solved in a different way by the new atmosphere version. See beta.atmospherejs.com. The package list layout is no longer the design used for atmosphere. |
We need a pager on the home page. Tom - you actually suggested this but I don't see a ticket for it, so I'm creating one!
The text was updated successfully, but these errors were encountered: