Skip to content
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

Max rows displayed option #459

Closed
T89L opened this issue Jul 13, 2016 · 6 comments
Closed

Max rows displayed option #459

T89L opened this issue Jul 13, 2016 · 6 comments

Comments

@T89L
Copy link

T89L commented Jul 13, 2016

Why not solve performance issues on large result sets by adding a max rows displayed attribute? I added this, put a limitTo filter on the repeat for the results display, and put a "Display first X rows" at the bottom with a ng-if checking if the filteredresults length is > the max rows.

The search function still works this way and now the enormous lag (I have ~5k records sometimes) is completely gone. The code is very minimal, but I can create a pull request if you'd like.

Thank you for this excellent control!

@isteven
Copy link
Owner

isteven commented Jul 14, 2016

@tim-lukacik

Tim, a pull request would be appreciated. Just make sure it works will all the features (grouping, filtering, select all, none, reset, etc).

@Wingie
Copy link

Wingie commented Jul 14, 2016

Yes, im also facing a lot of performance issues with this control..
could you share your code?

@T89L
Copy link
Author

T89L commented Jul 14, 2016

@Wingie Take a look at #460. I found a limit of 500 to work acceptably on my machine so I suggested that as default. Seems to work with everything. It's just limiting what's displayed, not actually touching any arrays. It could potentially cause a group to not be fully listed if the group happens to be around the limit.

@T89L
Copy link
Author

T89L commented Jul 20, 2016

A better solution would be pagination here instead :)

@Wingie
Copy link

Wingie commented Jul 21, 2016

Or maybe a solution that involved "virtual rows" or something.. like
writing only the visible elements to the DOM.. because from what i'm seeing
the issue is the angular double binding and large number of watchers.

i have the need to put multiple dynamically changing multiselects on a
single page..
and sometimes chrome gets stalled because of the performance issues.

[Wilson Wingston Sharon]

On Wed, Jul 20, 2016 at 7:01 PM, Tim Lukacik [email protected]
wrote:

A better solution would be pagination here instead :)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#459 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIj5Fwd6Ga7siFLchxxDf_jT19pNvliks5qXjgugaJpZM4JLpWh
.

@T89L
Copy link
Author

T89L commented Jul 21, 2016

If you haven't already, check out ui-grid.

@isteven isteven closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants