kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

Comet updates not working with over 100 adds/deletes #240

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a simple dojo grid attached to a persevere store, with comet enabled
2. Using the console add more than 100 entries
        for(var x=0;x<110;x++) new MyClass({description:"Hello "+x})

3. Watch which entries appear in the grid

What is the expected output? What do you see instead?
Only entries over 100 appear in the grid, i.e. I get lines with "Hello 101" 
through to "Hello 109" 
using the above test.  If I add 150 values instead I get "Hello 101" through to 
"Hello 149".   If I 
change to 100 or below, everything works perfectly and I get all entries from 0 
thru 99.  The 
database is getting updated correctly and if I refresh the grid it shows the 
correct data, so this is 
a problem with Comet updates only.

There is a similar problem with DELETE, if I do :-
    var a=load("MyClass"); for (var x=0;x<110;x++) remove (a[x]);

Then comet does not send a full update either; but again works fine for less 
than 100.

Changes seem to work fine all of the time, it is just additions and deletions 
that cause the 
problem.

What version of the product are you using? On what operating system?
Using nightly build form early August, on both Safari and Firefox.

Please provide any additional information below.

Original issue reported on code.google.com by pvolkaer...@gmail.com on 6 Sep 2009 at 10:08

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 6 Sep 2009 at 10:42