1. (a) Discuss the issues of Relational Database Scaling
(b) Briefly, discuss different types of NoSQL...
1. (a) Discuss the issues of Relational Database Scaling
(b) Briefly, discuss different types of NoSQL databases
Solutions
Expert Solution
1. (a) The issues of relational database scaling
:-
The Relational DB like oracle 12c, MySQL, Postgres and
microsoft SQL is design to run on a single server to maintain the
integrity of the table mapping and to avoid the problem of
distributed computing.
The relational database have huge issues to achieve
scalibility and elasticity. main goal to design relational
database was to kept the data neat, small and orderly. but
if the data is big than it can be
problematic.
The relational database can not be used in cloud
computing where the data is big.
The organizations choose to shard their database across
multiple server by the use of code created in house, which
can be very difficult to maintain.
If a system need to scale, then the customer have to
buy more expensive, bigger complex hardware which will able to
proccess power, memory and storage.
(b.) Different types of NoSQLdatabase :-
The NoSQL database is designed and developed to address the
need of web scale applications which handled huge amount of data
and traffic.
There are four main types of database which include
--
Key value stores.
Document database
Column oriented database
Graph database
1.) Key value stores --
Key value stores is a simple type of NoSQL database. the data
element in the database is stored as a key value pair which has an
attribute name or key and a value. the storage of
key value is just like relational database which consists
only two columns.
these two column contain name of attribute and
value.
for example - attribute name = "state" and attribute
value = "gujarat"
2.) Document database --
The document database stores data in XML
documents. by using document database, the documents can
be nested and the elements indexes for fater query.
Document database like MongoDB and CouchDB is
very useful componant for full stack development tool chain.
In document database, the data are stored and retrived in a way
that is much closer to data object which is used in
application.
Document database is more popular because it has
flexibility to rework their document structure as per their
requirement in the application.
It is usually implemented with a scale out
architecture, traffic and provide clear and best path to
scalability.
3.) Column oriented database --
The column oriented database is used to store data as a
set of columns.
By using column oriented database you can gain greater
speed when querying data.
This database is most suitable for big data and instances where
the data is simple and consistent.
4.) Graph database --
The graph databse is focus on relationship between
elements of the data.
The element is stored as node. with the edges of the
node describe relationship to other nodes.
for example a user on a social media graph.
this connection can be called as links between elements.
The graph database is a multidimensional in
nature. they display relationship between data and
tables.
it contains relationship between set of data like
customer, products and prices which can be used to build model
network.
The database design process for noSQL databases is different
from one for relational (SQL) databases.
As we learned noSQL database does not require to have a
predefined structure, except of creating a list of databases and
the list of collections. Some of the noSQL databases (like MongoDB)
allow to define certain rules that will define what should be the
structure of the acceptable documents for each collection.
As you may recall, when you need to store multiple data points
in...
Define the four main types of relational constraints and use the
example relational database (Figure 1) to illustrate each of these
constraints.
Figure 1
House(MLS, Addr,
NumRooms, NumBedRooms, SellID, OfficeID, Price)
Seller(SellID,
Name)
PotentialBuyer(BuyID, Name)
REOffice(OffID,
Name, Addr, Phone)
Agent(AgID, OffID,
Name)
Showing(AgID, MLS,
BuyID, Date)
What RAD?What is a relational database?What are the other types of DBMS?What is a composite key?What is a primary key?What is a surrogate key?What is a foreign key?
Relational Operators
For Cpp
Discuss why relational operators can be used with enumeration
types. Provide at least 2 examples of relational expressions with
enumeration types. Explain your examples
1.Explain the difference between file-oriented
transaction processing systems and relational database systems.
Discuss the advantages and disadvantages of each
system.
2. What is the difference in logical view and physical
view?
3. Describe the differences between the data definition
language (DDL), data manipulation language (DML), and the data
query language (DQL).
4. Describe a data dictionary.
5. Explain the relational database data
model.
One of the characteristics of good relational database design is
normalized tables. Discuss two ways in which normalization helps
minimize data redundancy and anomalies such as insertion, deletion,
and update anomalies.
What are some other characteristics of good database design?
For Machine Learning, one
question.......................................................................................
1) Discuss the relation between feature scaling and the gradient
descent algorithm. To be precise, discuss how feature scaling can
affect the gradient descent algorithm?