Hi all

We have a large data set, potentially several thousand results, though just 
currently a maximum of about 500. We have paging, ordering and filtering 
(powered by checkboxes). We have noticed that there is an ever so slight 
delay between selecting the checkbox and/or checkbox label and the dataset 
being updated. It is a minor delay, very minor and noticed it after looking 
at some large sites that use clientside filtering, such as SkyScanner:
http://www.expedia.co.uk/Flights-Search?trip=roundtrip&leg1=from%3AManchester%2C+England%2C+United+Kingdom+%28MAN%29%2Cto%3ANew+York%2C+NY%2C+United+States+%28NYC-All+Airports%29%2Cdeparture%3A14%2F03%2F2014TANYT&leg2=from%3ANew+York%2C+NY%2C+United+States+%28NYC-All+Airports%29%2Cto%3AManchester%2C+England%2C+United+Kingdom+%28MAN%29%2Cdeparture%3A29%2F03%2F2014TANYT&passengers=children%3A0%2Cadults%3A2%2Cseniors%3A0%2Cinfantinlap%3AY&options=cabinclass%3Aeconomy%2Cnopenalty%3AN%2Csortby%3Aprice&mode=search#departingModuleIndex=0&leg=1

Their checkboxes are rapid. Ours have no more than a second delay.

Unfortunately I can't share our site (though anyone wishing to take a 
closer look, please get in touch) but I have mocked up a demo
http://plnkr.co/edit/HWDtfmUzWcrqux762Fmu?p=preview

Typically this works very quickly (even locally with 2000 results) so it 
has me thinking that other JS in our app is causing the slow down. So 
that's something to look at.

However the main reason I come here is to get a sanity check on our 
filtering approach. Is it correct? Is it scalable? Any issues you see? In 
the plunker demo, in script.js, there is a commented-out console.log on 
line 33. If you enable that it will run the console 600 times, exactly 
three times the amount of results in the dataset. 

SkyScanner uses Backbone and therefore I wonder whether it then uses 
Underscore. Is Underscore going to be a benefit to our project?

Generally, any thoughts, tips, solutions you have, please say :)

Cheers
Tom

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to