News for hackers. Stuff that matters.
Re:I like Meteor.js because I'm lazy by akbar501 on Tuesday October 08, 2013 @06:21AM (#6513928)
Joe, thanks for providing details...it's very helpful.

Would you be willing to share a sample of the document schema that was causing problems when syncing 10k documents? I'm very curious to know if these were large or small docs, single schema vs. varying schema, etc.

Re:I like Meteor.js because I'm lazy by joecarpenter on Tuesday October 08, 2013 @06:52AM (#6514018)
It is mostly number of documents and their size. Single schema.

There are no indexes, so whenever client wants to find something in synchronized collection, it'll have to scan through all documents. With 10k documents it was locking up DOM (it was very noticable).

If documents are large, client won't be able to connect to the server with any of the polling transports - initial synchronization time exceeds 30 seconds and SockJS will drop connection. This is partially solvable by having reverse-caching proxy (i.e. nginx) forcibly compress all polling SockJS responses.