Giter Site home page Giter Site logo

Big data example about jquery-treegrid HOT 16 OPEN

maxazan avatar maxazan commented on July 2, 2024
Big data example

from jquery-treegrid.

Comments (16)

YMA-MDL avatar YMA-MDL commented on July 2, 2024

Also with around 800 rows, it would be nice to not block the whole interface while creating the treegrid.

from jquery-treegrid.

maxazan avatar maxazan commented on July 2, 2024

I will think what can I do

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

I've got a view with a bit more than 800 rows, and with this change, it reduces from 40s to 5s. Maybe it needs more test but is seems to work fine for me. And maybe it works only with bootstrap as I'm using the "hidden" class. If not using bootstrap, it would need something to handle the visibility but you shouldn't use hide and show in a loop. Let Jquery handle the loop by applying hide and show to a collection.

from jquery-treegrid.

sharathtrt avatar sharathtrt commented on July 2, 2024

it is not working for me...i have around 400 to 500 rows it is taking around 40sec..please help me out..

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

you've tried my change?

from jquery-treegrid.

throrin19 avatar throrin19 commented on July 2, 2024

I have the same problem, i have ~1500 rows to show and the treegrid and treeGrid collapse parts are too long and they freeze my browser :

treeGrid: 15861.654ms
collapse: 10863.867ms

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

have you tried my code change suggestion ?
YMA-MDL@633cf33

from jquery-treegrid.

throrin19 avatar throrin19 commented on July 2, 2024

For your change @YMA-MDL I think we should set that like this :

if ($this.treegrid('isOneOfParentsCollapsed')) {
     $this.addClass('hide');
} else {
     $this.removeClass('hide');
}

Because the show class in Bootstrap show elements as block. And the gain is very small (1s)

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

Strange, it made a very significant change for me. This issue was that the code was iterating on important DOM manipulation where now it's just a class update and Jquery does the rest.

from jquery-treegrid.

throrin19 avatar throrin19 commented on July 2, 2024

but that part does not solve the tree-grid initialization. Only the collapse part. I think the modificzation to optimize the code is to rewrittent all of this without jQuery but with pure javascript and frasgments. In my code, if i try to manipulate a large amount of data, i increase the loadTime and reduce this by 10 only with fragment and javascript native DOM elements. jQuery is heavy and too resource hungry to manipulate large amount of data

from jquery-treegrid.

mitchc32 avatar mitchc32 commented on July 2, 2024

@YMA-MDL - for what it's worth, integration with this script http://nexts.github.io/Clusterize.js/ would likely solve the big data pains and increase your scripts outer limits by hundreds of thousands of records. I might investigate this myself once I have some time.

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

Good Luck, not sure if it will allow to save nested state. Like you browse a structure, and getting back to it later, the same branches are deployd.

from jquery-treegrid.

krosoftware avatar krosoftware commented on July 2, 2024

@YMA-MDL, did you implemented Clusterize? If yes, can you share some sample code, please?

from jquery-treegrid.

YMA-MDL avatar YMA-MDL commented on July 2, 2024

No I did not, but I may come across the same need soon.

from jquery-treegrid.

krosoftware avatar krosoftware commented on July 2, 2024

Thank you. I try but it does not worked :(

from jquery-treegrid.

Parama91 avatar Parama91 commented on July 2, 2024

Also tried to combine the Clusterize, but initializing still stays slow with about 1500 rows. Commit from @YMA-MDL (thanks by the way ;-) ) was applied to the code.

Attached the performance record i did with Chrome Version 61.0.3163.100 (64-bit) for future analyses:

Recorded by Chrome

from jquery-treegrid.

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.