Git Product home page Git Product logo

Comments (5)

fangjj avatar fangjj commented on July 28, 2024

@lfades any idea about this?

from cottz-publish-relations.

fangjj avatar fangjj commented on July 28, 2024

@lfades any update, please

from cottz-publish-relations.

lfades avatar lfades commented on July 28, 2024

Hello! I'm no longer supporting this package because of lack of time and of the current state of Meteor, but I'm going to try to answer the question, I don't think that the comments or books should be removed, the cursors are stopped in the server, but you can manually remove the documents from the cache in the client.

from cottz-publish-relations.

fangjj avatar fangjj commented on July 28, 2024

thank you for your reply. how to manually remove the documents from the cache in the client? just like this:

Authors.find(authorId).observeChanges({
	removed(id) {
		const bookIds = Books.find({authorId: id}).map(book => book._id);
		Books.remove(_id: {$in: bookIds});
		Comments.remove({bookId: {$in: bookIds}});
	}
})

Meteor platform is still alive, why you are running away meteor.

from cottz-publish-relations.

lfades avatar lfades commented on July 28, 2024

it was a performance and scalability decision, my current stack is Next.js + Apollo / Node.

The solution you're using may work, if you can do it from the client using minimongo, that may be better.

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.