meteor - Client side pagination is slow -
for record set of 10000 rows window of few hundred rows subscribed via start row,stop row, takes on 10 seconds show "ready" ? should records removed before moving window ? why meteor slow ?
firstly, make sure publishing keys need , not don't. example:
meteor.publish('querydata',function(queryid,startrow,stoprow){ return querydata.find({ ... query ...},{ fields: {name: 1, description: 1}}); });
this important if documents big.
secondly, @ websocket traffic in browser's inspector see how data sending on in publication.
thirdly, make sure collection indexed on keys searching on not doing collection scans.
meteor pretty fast simple mistakes can make feel slow.
Comments
Post a Comment