News for hackers. Stuff that matters.
Re:Show HN: GUN Starter App Boilerplate – An Easy Open Sourc... by fiatjaf on Friday November 11, 2016 @10:59AM (#12931785)
Is it an actual graph? Can I get all objects pointing to some other and vice-versa? Is that efficient? Does that mean making thousands of queries?
Re:Show HN: GUN Starter App Boilerplate – An Easy Open Sourc... by marknadal on Friday November 11, 2016 @01:05PM (#12932814)
If you don't index that query it won't be efficient, but you absolutely can do that! In fact there are awesome tagging extensions that people in the community have built ( https://github.com/Stefdv/guntagger ) that easily lets you do stuff like that. These are efficient because they are (if you are familiar with Big O Notation) O(1) queries not dynamic (because they are indexed). So no, it would not take thousands of queries.

I feel like that doesn't really answer your question though? Want to give a more concrete example that I can expand on? Thanks for the question!

Re:Show HN: GUN Starter App Boilerplate – An Easy Open Sourc... by fiatjaf on Friday November 11, 2016 @01:39PM (#12933054)
Actually, it has answered it. Thank you!

I want to build something with some simple graph things. I couldn't manage to do with Cayley and Gremlin I'll try now with Gun. I'll ask on Gitter when I have something more concrete to work with.

Re:Show HN: GUN Starter App Boilerplate – An Easy Open Sourc... by marknadal on Friday November 11, 2016 @03:02PM (#12933820)
That is sad! Graphs are actually super easy. Here is a sweet&short guide that introduces graphs to relational/NoSQL people: https://github.com/amark/gun/wiki/graphs . It even has a runnable JSbin example at the bottom so you can try it out in the browser without installing anything!