1. #1
    Sencha User
    Join Date
    Oct 2013
    Location
    Chandigarh, India
    Posts
    5
    Vote Rating
    0
    PankajG is on a distinguished road

      0  

    Default ExtJS store data handling and Memory Leaks

    ExtJS store data handling and Memory Leaks


    Hello All,


    I have few concern regarding data in Ext JS store.


    If I open a grid having 20,000 records (using client side buffered rendering) these data are loaded in ExtJS store but if i explicitly close this display does ExtJS remove all 20,000 records that were uploaded to feed this display? Who, if and when removes data from the client’s data store? In other words, how is the uploaded content being managed on the client side?


    Do ExtJS cleanup components and free resources upon closing the display automatically or this should be handled in code. If so, how?

    Thanks!
    Pankaj Garg | Sr. Software Developer

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    The framework will manage the memory dump on close. You won't have to code for that.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

  3. #3
    Sencha User KJedi's Avatar
    Join Date
    Feb 2008
    Location
    Ukraine, Mykolayiv
    Posts
    145
    Vote Rating
    1
    KJedi is on a distinguished road

      0  

    Default


    slemmon is right, ExtJS and browser manages this.
    Are you sure you need 20K records in the store at the same time? I'd better load them from the server on demand or, at worst, used localStorage and browser's DB to store records instead of memory.
    Noone can navigate 20K records, people will be searching through them. And DB is much better at searching anyway :-)
    http://iqria.com/ http://frontendgeeks.com/
    JS ninjas. Delivering ExtJS apps since 2008.
    Providing development and consulting.

  4. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      1  

    Default


    Hmmm.

    If the grid is destroyed it will be eligible for GC. However, 'closed' may not mean destroyed.

    Further, depending on how the store is created it may have autoDestroy set to true or false. If it is set to true then the store will be destroyed when the grid is destroyed. Destroying the store isn't necessary if it's eligible for GC but as the store and its records hold references to each other it only needs 1 record to be retained elsewhere in an application and the whole store will be ineligible for GC. Under those circumstances the store needs to be destroyed to break that link.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar