Code Monkey home page Code Monkey logo

Comments (3)

amark avatar amark commented on May 21, 2024

Per the sync protocol being based on immutable data, gun core is not allowed to delete data (only null it out). And because gun is fault tolerant, you can only successfully actually delete data if you purge the data from every peer and every storage layer. It is recommended that you just "forget" (de-reference) nodes, rather than delete them.

If you do something like var foo = gun.set({foo: 'bar'}).key('foo'); and then later do foo.set({yay: 'pancakes'}); these updates merge as partials. GUN should not be duplicating that node, because its soul is what it is actually identified by.

If you mean something like gun.set({foo: 'bar'}).key('foo'); and then later "gun.set({something: 'else}).key('foo');` then you're just overwriting the key to point to a new node.

However, I don't feel like I understand your question? Could you show an example of what you are talking about? And what you thought was the suppose to be the results?

from gun.

speier avatar speier commented on May 21, 2024

This: "It is recommended that you just "forget" (de-reference) nodes, rather than delete them." answered my question. Thank you! ps: sorry about my noob questions, I've just started experimenting with Gun..

from gun.

amark avatar amark commented on May 21, 2024

:) I'd rather have people asking questions than... people not asking at all.

from gun.

Related Issues (20)

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.