2 ms·
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 h
by marknadal 10y ago
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 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!
- fiatjaf 10y agoActually, 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.
- marknadal 10y agoThat 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 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!