Gregivy / simpleddp

An easy to use DDP client library
MIT License
165 stars 19 forks source link

what about the performance of the collection if data became large? #16

Closed imhazige closed 4 years ago

imhazige commented 5 years ago

@Gregivy This is the best DDP client I have see so far!

I just noticed that it support client collection. I think you should emphasize this feature in the git topic. :)

I have had a glance of the source code, I think it just store data in memory, right? so What's the performance if the data became large?

why not use minimongo like meteor does?

Regards

Gregivy commented 4 years ago

Thank you @imhazige!

Yes, it doesn't use localStorage or something like this. If you use local sorting it will be quite fast as simpleddp updates (and re-sort) only changes that arrives from server, not full local copy of the collection.

You can use minimongo (but you need to spend some time binding it with simpledpp) if you like it but I personally prefer js-like functional approach :)

In case of performance simpleddp can easily handle few million documents (during the test I generated 10k documents each 10 seconds and put them inside the local collection) but I did not estimate the time in ms.

imhazige commented 4 years ago

@Gregivy

I got it, it seems to be good enough.

Amazing work, thanks.