Hauv NosqL – Tsis zoo xwb SQL

Inside NoSQL

Hauv NosqL – Tsis zoo xwb SQL

Overview –

NoSQL stands for Not only SQL, Nws txhais tau tias ib database nrog ib co nta nta ntawm RDBMS. Hnub no databases xws li NoSQL yog nkag mus rau tej chaw hauv lub enterprise.

One of the most known examples of NoSQL database is MongoDB.








Its benefits include:

  • NoSQL database like MongoDB is used in big-data, real-time applications, and cloud computing.
  • It came into existence to overcome the limitations of RDBMS.
  • Provides a flexible schema less model.
  • Simplifies the interaction between the application and the database.

RDBMS was not designed to solve scalability issues faced by current applications. NoSQL’s flexible data model addresses some issues not considered by RDBMS.

  • Kwv oriented programming.
  • Well-organized architecture.
  • Quick Iteration.
  • Qauv, cov ntaub ntawv ib xyaum thiab unstructured.

Advantages of NoSQL DB over RDBMS

  • Complex joins are not there.
  • It’s easy to scale NoSQL database.
  • NoSQL supports dynamic queries on documents.

To make things more clear, here I am differentiating NoSQL and SQL databases before commencing with NoSQL insights.

Basis NoSQL MySQL
History 2000s Part of tech world since 1970s
Hom phiaj For dealing with the limitations of SQL database. For commencing the data storage phase.
Schema Dynamic Schema, dissimilar data could be stored together easily. Allows data insertion without any predefined schema. Fixed schema in the form of rows and columns. Structure and data-types are fixed before.
Development Model Qhib lub qhov MySQL, Oracle Database, a collaboration of closed and open source.
Data Manipulation Object Oriented API’s are used. Queries – Xaiv, Insert, Hloov tshiab, yam.
Scaling More scalable i.e. database automatically spreads data across servers if there is a requirement. Less scalable i.e. the SQL server could be spread over many servers, but it requires additionally engineering.
Piv txwv MongoDB, HBase, yam. MySQL, Oracle Database, yam.

 

Nyob rau cov tshooj no, we’ll discuss some insights in NoSQL. I’ll assume that you have some understanding of Relational Database Management System (RDBMS).

Dab tsi yog qhov 10 Insights in NoSQL?

Here are the some insights in NoSQL.

Where to use NoSQL database

  • Ntawv loj
  • Multiple Users
  • Mobile Infrastructure
  • Content delivery and Management

Relationship with RDBMS

Relational database management system (RDBMS) is based on relational database model by E.F.Codd. They frequently replaced legacy hierarchical and network databases models.

Here is the relationship of NoSQL terminology with RDBMS.

RDBMS MongoDB
Database Database
Cov lus Collection
Tuple/Row Document
column Teb
Table Join Embedded Documents
Primary Key Primary Key,
where Default key _id provided by mongodb.

Handling relational data

NoSQL handles relational data as well. Most NoSQL do not have the ability for joins in queries. These ways are there to handle relational data in NoSQL database.

  • More data could be inserted in smaller number of collections through NoSQL database.
  • It’s common to use different queries to retrieve a large amount of data. As NoSQL queries are faster than traditional SQL queries, so the cost of doing additional queries is acceptable.

Database Types

It could be classifies as.

· Document Databases

It is the notion of a document. Piv txwv, SimpleDB, MongoDB, yam.

Different implementations offer different ways of organizing documents, zoo li
collections, tags, non-visible metadata, directory hierarchies, yam.

· Graph Store

Graphs are interconnected elements with an undetermined number of relations between the).It is used to store network information. Piv txwv, Neo4J, OrientDB, yam.

It includes social data, network data, route map, yam.

· Tus yuam sij cias

Key-value stores use the associative array data model. Associative arrays are maps and dictionaries. The data is represented as a collection of key-value pairs, in a way that each possible key appears at most once (in the collection).

Piv txwv, CouchDB, FoundationDB, yam.

· Wide-column stores

These are optimized for queries over large datasets.

Data Storage Model

Minor changes in data model can be a big headache for database like RDBMS, but the data storage model of NoSQL is flexible. The application can virtually store any structure using NoSQL Key Value stores and document databases. Piv txwv, the data gets stored into documents using JSON.

Txawm li cas los, relational model gets data and stores it into a number of tables interrelated with other. Os, data is saved in rows and columns and joined with other table rows and columns data. Foreign keys are used to reference tables. Piv txwv, Employee table data arranged in rows and columns and connected with Database table using a unique db id.








Automatic Replication

NoSQL databases support automatic replication. Replication is a process to create and manage duplicate versions of a database. Txawm li cas los, there is no need to assign this task to any other application in NoSQL due to its automatic replication characteristic.

This leads to reliable code integration, faster development, and less time invested on management.

Schema

Thaum paub database, schema is to defined first before moving further. Piv txwv, while storing data for employees, i.e. lub npe, daim, koom, chaw nyob, phone, tus SQL structure should have prior information of what is being stored. Let say after this, now there is a need to add new column, employee joining date to the database. Qhov no, new column would be added, and then the complete database would be migrated to the new schema.

NoSQL, with its dynamic schema, allows data insertion without any predefined schema. Through this, it’s easier to make real time changes to the application, thiab cov ntaub ntawv yuav muab ntxiv qhov twg yooj yim. Qhov no ntxiv ua rau txoj kev loj hlob sai thiab code integration txhim khu kev qha. Txawm, database administrators tsis tau mus nqis peev pab n pes tsawg teev rau qhov no.

cheaper

NoSQL database siv clusters ntawm cheaper servers los kov cov ntaub ntawv loj thiab transaction tagnrho, Thaum RDBMS muaj kim servers. Yog li no, Tus nqi gigabyte yog tsawg tshaj li tus nqi ntawm RDBMS.

Yog li ntawd, Nws siv yog ua los ntawm internet tuam txhab uas muag, Vim hais tias nws yog qhov xav tau kev pab niaj hnub.

Scalable

Ntawm tej taw tes, nrog relational database, Tej teeb meem yuav arise nrog cov server yog hais tias cov ntaub ntawv yuav tsum tau thiab pes tsawg tus neeg nce drastically. Rau qhov chaw nyob no, Cov servers yuav muab faib ua ob los yog ntau tshaj. Qhov no tig yuav ua kom paub complexities nyob rau hauv lub cev.

NoSQL databases tau tsim los daws cov teeb meem no. It provided a better approach to scaling. It’s more scalable when compared with RDBMS and tolerates database failures with a ease. Many organizations use NoSQL for building high performance systems.

Piv txwv, ebay uses MongoDB, ib NoSQL database for saving their media data.

Yandex, Russia’s largest search engines uses MongoDB for managing user data and metadata.

Txoj kev sib tw

These are some challenges still faced by NoSQL.

  • RDBMS is here from a long time, unlike NoSQL, whose alternatives are still in pre-production phase.
  • NoSQL databases installation and maintenance requires a lot of skills. RDBMS is much easier to maintain.
  • The support for RDBMS is still far better than NoSQl. Strengthening its support is the biggest challenge.
  • Less service is provided for ad-hoc query and analysis..









Txoj kev

NoSQL database is becoming significant part of database world, especially with today’s Big Data, huab xam, and Web needs. According to a survey by research firm IDC, los ntawm 2020, 32 billion things will be connected to the Internet.

Innovative enterprises and companies are investing a lot in Internet of things for developing new products with reduced costs. They want less wastage and real time data access for satisfying customers. As NoSQL overcomes all these challenges, we can say that it has a bright future to scale data access to billions of connected devices

Txawm li cas los, there are still many challenges faced by NoSQL and therefore would need some more years to outshine like RDBMS.

============================================= ============================================== Yuav zoo TechAlpine phau ntawv rau Amazon
============================================== ---------------------------------------------------------------- electrician ct chestnutelectric
error

Txaus siab rau qhov blog? Tshaj tawm lus thov :)

Follow by Email
LinkedIn
LinkedIn
Share