logo

Json Schema Format Assignment-2022

   

Added on  2022-10-17

3 Pages803 Words21 Views
INTRODUCTION
MongoDB allows its databases to be modeled in a JSON schema format. The that do
not meet the requirement of a JSON format are invalid and can be rejected in a
MongoDB. The NoSQL databases provide a flexible way of organizing data in a
collection. The flexibility features of MongoDB is
It allows documents within a single collection to have different fields with different
data types. The fields can also hold a mixture of data types, unlike SQL where a
single field can contain data of the same type.
Another feature is that it allows adding of fields for a specific document within a
collection as same as removing of fields for a particular document. Having this in
mind it was easy to build a well-structured database in MongoDB.
DATABASE STRUCTURE
In SQL data are organized in a tabular called tables, in MongoDB data are stored in
a collection and relationship between data may not be considered when structuring
the database. There are different ways of structuring data the main being
referencing and embedding. Embedding allows data to be embedded in a single
document.
Our data was stored in an embedded structure. We saved all the provided data in a
single collection named data. The data were related to each other in different ways.
There was the game information which consists of the game title, description,
release date, and the price. Another related data is the developer information.
contains the developer id, name and the URL of their site. Another related
information is the current version and the current rating data.
All these data were embedded in a single document to create a relationship. On of
the advantage of using the techniques is the use of a single line of code manipulate
and retrieve data in a database.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Working with MongoDB: Database Structure and Querying
|7
|1182
|336

Big Data Database: MongoDB
|15
|689
|24

Task-2 Report MongoDB for Movie Maniacs Database
|8
|1371
|154

Database Design for Games in MongoDB
|4
|1067
|418

Non-relational Database
|4
|820
|222

Data and Information Retrieval
|16
|2792
|241