MongoDB question

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 2153
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 464 times
Been thanked: 108 times
Contact:

MongoDB question

Post by serge_girard » Fri Sep 28, 2018 8:39 am

Hello!

Anybody familair or experience with MongoDB + Harbour?

Serge

User avatar
apais
Posts: 286
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 36 times
Been thanked: 22 times
Contact:

Post by apais » Fri Sep 28, 2018 9:43 pm

Why MongoBD ?

User avatar
andyglezl
Posts: 1056
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 24 times
Been thanked: 46 times
Contact:

Post by andyglezl » Sat Sep 29, 2018 12:38 am

No.
Me puse a leer, y tengo muchas dudas...
--------------------------------------------------
Do not.
I started reading, and I have many doubts ...

https://www.google.com.mx/search?client ... 8&oe=UTF-8
------------------------------------------------------------------------------------------------------------------------------------------
MongoDB vs. MySQL: the comparison of two database models

Unlike MySQL, MongoDB is a document-oriented database manager that, therefore, has a completely different approach to data storage. However, its base structure shows similarities, such as:
Instead of tables, the data is stored in folders (collections).

Documents in BSON format replace the lines, defining fields in the columns of the SQL tables.

These fields always consist of a pair of a key, which at the same time represents the name of the field, and a value. This value can represent a figure, a word or a text, but also a complete list of words or figures and even a complete file.

A MongoDB document is, in this way, a collection of key / value pairs, as are, in principle, the rows in the MySQL tables.



MongoDB does not use SQL as a query language, having its own language for data processing.
Andrés González López
Desde Guadalajara, Jalisco. México.

martingz
Posts: 248
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico
Has thanked: 12 times
Been thanked: 9 times

Post by martingz » Sat Sep 29, 2018 1:07 am

Serge
https://medium.com/harbour-magazine/int ... 9a1a167f7b

Teo Fonruge
MongoDb driver for Harbour language (based on mongo-c-driver)
https://github.com/tfonrouge/hbmongoc

User avatar
serge_girard
Posts: 2153
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 464 times
Been thanked: 108 times
Contact:

Post by serge_girard » Sat Sep 29, 2018 6:38 am

Thanks all for replying.

Me too was wondering, why? So therfore I asked!
I use MySQL for many years without any problem at all but someone advised me MongoDB and I am still not convinced about the added value...

Serge

User avatar
serge_girard
Posts: 2153
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 464 times
Been thanked: 108 times
Contact:

Post by serge_girard » Sat Sep 29, 2018 7:15 am

I will remember this:
To answer the main question: “when to use MongoDB instead of MySQL?” you need to take into account your project requirements and further goals. MySQL is well-recognized for its high performance, flexibility, reliable data protection, high availability, and management ease. Proper data indexing can solve the issue with performance, facilitate interaction and ensure robustness. But if your data is unstructured and complex, or if you can’t pre-define your schema, you’d better opt for MongoDB. And what is more, if you need to handle a large volume of data and store it as documents — MongoDB will help you to meet the challenges.
From : https://hackernoon.com/mongodb-vs-mysql ... 14b699c38b

I know enough!


Serge

User avatar
apais
Posts: 286
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 36 times
Been thanked: 22 times
Contact:

Post by apais » Sun Sep 30, 2018 5:03 pm

You can see it like this: MongoDB is nothing but a serialized hash or asociative array (key/value pairs).
RDBMS are ortogonal, Mongo DB is unstructured data (the value), with a forced primary index (the key).
I know this isn't scientific at all, but gives you the idea about what it is useful for =).

Post Reply