Git Product home page Git Product logo

Comments (5)

lfades avatar lfades commented on July 28, 2024

when I write this package I saw publish-composite first and I didn't like it, because it's using the observers in a bad way. Most of the times you only need to use observeChanges as Meteor does by default (they always use observe), I explain that here and you can see their implementation here.

They also have some warnings but with publish-relations as long as you follow the recommendations you should never have performance problems

from cottz-publish-relations.

lfades avatar lfades commented on July 28, 2024

publish-relations also allow you to have non reactive cursors and joins, very useful when you're sure you don't need reactive data in some places :D (and very performant friendly)

from cottz-publish-relations.

vladejs avatar vladejs commented on July 28, 2024

They also have some warnings but with this package as long as you follow the recommendations you should never have performance problems

You mean theirs or yours?

Talking about recommendations, I read the Performance section and saw that inmediatelly deprecates your first usage example of the package with joins. Why not teach to use joins from the start?

Could you document a complete example on using joins without nested this.cursor? For example, an Artist has multiple Images, and every image has artistId and Comments has imageId.

from cottz-publish-relations.

lfades avatar lfades commented on July 28, 2024

I fixed the typo, thanks.

I have a note under the example that points to the recommendations, there is the same example but with a join.

When I have free time I could check the README again but I'm a little busy at the moment, also my english was really bad when I created this package in 2015 (I was 17)

from cottz-publish-relations.

vladejs avatar vladejs commented on July 28, 2024

Thanks for your time @goluis , I speak spanish as well so if you are willing to create a README_ES and explain it better I definitely will read it 🥇

from cottz-publish-relations.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.