Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devios157707yTriggers don't make sense in a NoSQL database because everything is already essentially a trigger.
In other words, whereas a trigger is something that fires when a change occurs to a certain table, in NoSQL *everything* happens only when a change is made.
It's a different philosophy: whereas SQL is basically a big living datastore that you can query on demand to get the info you want, in NoSQL there are views that are built up and maintained incrementally. In other words, the views are kind of what your triggers were previously doing: any kind of processing that you need to take place when something changes happens in a view, and you can emit whatever you want from a view.
Not sure if that helps at all…? -
Try looking into RavenDB and its indexes, which are much more similar to the triggers you know from relational databases. Once you've grokked that, understanding the concept with other document databases should make more sense.
-
gruiiik727yFirebase have that https://firebase.google.com/docs/...
The only very big downside of firebase, it is closed source and can follow the Path way :/ -
@gruiiik there's an open source self-hosted alternative which claims to be compatible with firebase. I can't remember its name though.
-
@devios1 Thanks! It helps me understand certain logic about NoSQL. Now I'll google that view thing and it's MongoDB equivalent.
Related Rants
-
StanTheMan4Hired a new backend Dev. He writes a script and sends it for testing... Tester: "It's not working..." Backend ...
-
goodBoiBadDev44She - So. Do you read ? Me - Yes. Infact a lot. Daily. My life is filled with it. She - Wow. Nice. So what d...
-
shauryachats2"Occasionally stores something" 😂
Using DB triggers is something bad? I have started using NoSLQ databases (CouchDB and MongoDB) and I can't find anything intuitive or native to the BD.
The worse is that I have googled it and I rarely find people asking for triggers in NoSQL databases.
What am I missing? My concepts about RDBMS blind me about NoSQL?
undefined
couchdb
nosql
triggers
mongodb
rdbms