What database to choose from? [closed] - mongodb

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Realm Database or MySQL or MongoDB or the standard Firebase.
I am curious why would anyone choose one over another. I am in a group project and one of the members in the group suggested that we should use Realm Database over Firebase. He tried to explain to me the reason but I was not able to comprehend.
What has your experience been like? Is one database more user-friendly over another?
Firebase seems to have very nice documentation.
Which one would you guys suggest?

Those are three different things.
Realm is a database for storing content locally on a device.
MySQL is usually used together with a web server. If you have a server and need to store data, you can use MySQL.
Firebase is Google's alternative for building your own server. It gives you tools that allow you to avoid having to build your own web server, such as Firestore, which lets you do CRUD operations directly from devices without needing to send that information through a server first.

If you works on small project you must going with MYSQL database. Its very simple and easy to understand. But if your project are big like that organisation type projects I recommend you to going with MongoDB.

Related

Choosing cloud database for Flutter project [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed last month.
Improve this question
I am creating a Recipe App on Flutter where it will hold recipes and I am here to humbly ask for suggestions on which Cloud Database should I be using to integrate with my app? I will list down few of the things that I would be expecting the Cloud Database to handle for my app, maybe from the listed requirements may help you guys better in suggesting one.
Requirements:
Users needs to login to use the app, so that the user can post their own Recipes to the Cloud Database.
Users can publish some photos to post for their recipes (was considering to store google drive links).
Users can see any recipes that are posted by other users.
Users can favorite a recipe and keep it in their list.
Users can comment on a recipe and give stars rating on it.
Users can view comments of a recipe that is written by others.
Users will be able to search for a recipe and while searching, they can also apply one or more filters such as Cuisine Types, Rating Stars and other filters that may be applicable.
Initially I was thinking to go with Firebase for creating projects with Flutter, considering the fact that I need to have User logins and No-SQL Database seems to be the best option for me to stick with when coming to Recipes and User reviews. However the problem here is, I am unsure if Firebase can perform the multi filter searches. The query has to be flexible as I may perform searches with different filter parameters.
If you had made up your mind with flutter. so i will suggest you to go with Cloud-firestore. it ticks all your requirements.
Also, it has really good support with flutter.

Persist data after app killing in Flutter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am building an online shop app using Flutter, and I am wondering what is the best way to persist data after the user exit the app or when the app is killed. The data I want to persist is the cart information, which contains a complex structure.
It worth mentioning that I'm using Provider for state management.
I was thinking of the below approaches:
Creating a local file and read/write info from/to it.
Shared preferences
The new Flutter feature with RestorationMixin, (I don't know how to deal with a complex structure in addition to using Provider).
SharedPreferenceis the possible solution for you.
you can convert your object into json String by using jsonEncode(object) and save it in the sharedpreference and when you need back the object from json string you can use jsonDecode(string) to get your object back.
If you want to save the data offline. I'd suggest using sqflite. SQFlite is an sql database that will be saved locally on the device. It's easy to use and is persistant as you requested.
If you want to save data online in the cloud somewhere then I'd advice looking into Firebase (Google database, works really well with providers) or mongodart (MongoDB database)

Best DB for datalogging [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a lot of logged data stored into a database by a data logger. Basically i have a lot of rows with a timestamp and some values. I want to store this data into a db that has performance and can scale on a multi node structure to support fault tolerance behaviour (and balance requests). Typically i use MySQL but i find its scalability not simple for this type of application. This time, i want offer other db scenarios.
So: Mongo, Redis, Couchdb?
Thanks all.
This is a hard question to answer and not something we can really give answers to on SO.
Redis is quick for getting the data in, but you can not query on the values of the keys so searching would be harder.
MongoDB & CouchDB would both work well as they are document stores and can be used to store any format for the logs.
There are other options. I know Cassandra is used a lot for this task, but there is also ElasticSearch as in (ElasticSearch, Log Stash, Kibana) which is a great solution for central logging.
In the end it probably down to what you want to do with the data.

A good tool for building admin / content management interface over MongoDB? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a good tool (or library or a framework) that I could use to easily build basic content management functionalities over MongoDB.
I am very well aware of the Admin UIs listed in Mongo's website, and I'm already using RockMongo for query and some db admin tasks. The problem is that while I as a software developer can happily use these tools, they are too powerful and complex for the people who are responsible for managing the content in the database.
So I'm specifically looking for a MongoDB content-management tool with:
Ability to easily build (scaffold) user interface around collections (generated create, read, update and delete forms / views)
Ability to add data validation and some template or schema for objects, especially when new objects are created and added into a collection
Support for fine-grained access control (user groups, per collection and per object read/write/admin access)
I've been considering using django-nonrel for building one, but would like to get more opinions before going any further.
Since you're looking for a solution beyond a straight Admin UI, I expect you will have to roll your own. I went through a similar exercise a few months ago and ended up using Yii Framework (PHP).
The attributes you're looking for (scaffolding, validation, RBAC, ..) are common to many frameworks. Are there specific languages you would prefer/consider using? There are frameworks/libraries for Ruby, PHP, Python, etc. Many of these go to lengths to coerce MongoDB into an ActiveRecord/ORM pattern to enable use of CRUD and scaffolding. An emerging approach for working with NoSQL data sources is the DataMapper/ODM pattern, which is a much more comfortable fit compared to ORM.
Have a look at penguin: a module that automatically generates administration pages based on your Mongoose models.

Are there any good tutorials on linking an iPhone app to a database? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have built an iPhone app that needs to pull data from a server. First I need to figure out what kind of server I will need. I'm a bit familiar with MySQL but was wondering if anyone had better suggestions on a backend. My app will have two tables that need to be populated by data residing on a server. Also, a user can submit data to this database which in turns populates the previously mentioned tables.
If you have any tips or tutorials, code snippets, etc. it would be really appreciated!
*Edit: I should mention this IS a remote database
Well if it's a remote server your thinking about then you should be looking into implementing some kind of service architecture like Web Services over SOAP or REST.
If the data stays on the iPhone than by all means use SQLite as it's fast and lightweight.
I would recommend starting with SQLite and local data first. Then when you have your main program logic, flow and UI complete, replacing the SQLite with Web Service calls.
Your database sounds really simple with just two tables. Perhaps you don't even need a SQL database. Perhaps a Berkeley DB would be sufficient. It has atomic commit, transactions, rollback etc. However you store data as key-value pairs.
However I am not sure if you can use it as a server. You could consider accessing the data through something like remote objects. This is done very easily in Cocoa. You could build a Berkeley DB on your sever that hosts the data as distributed objects that your iPhone app connects to.