• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Realtime Database Alternatives

stubbzj12

Newbie
I've been messing around with Firebase for a little bit. But, I've noticed I can't really do complex queries like I can in SQL. I know there's results on Google, but I just want to ask you what you guys prefer to use for your backend? The best thing about Firebase is that it's very easy to use, especially the event listeners. It's just super duper easy to implement. But I've ran into a problem with complex queries.

Are there any alternatives? I did give Realm a go last time, but just couldn't get it to work. May need to give it another go. It's just a damn shame for Firebase because I really like it.
 
But you said you can't do complex queries like you can in SQL. What are the queries you're trying to do?
 
I'll try give you an example.

I'm not sure how I would retrieve a specific user's posts from the posts node. In SQL the structure will be a user_id field, and then the title, body etc... I would be able to query the posts table 'select * from posts where user_id = myid' and retrieve them all.

If I'm using push() to generate a random key in the posts node in firebase, I'm not sure how I'd get a specific user's posts.

Really sorry if this makes no sense. I'm not very good at explaining myself. This is just an example.
 
I've never used Firebase, but I'm always interested in learning new stuff, so I'll do some investigation into this. On first glance, it seems quite unlike any other relational database query mechanism, so I can understand your confusion.
In the meantime, if anyone else has Firebase knowledge and can help out, feel free!
 
Back
Top Bottom