5 HBase Vs. RDBMS Top Functional Differences

Image
Here're the differences between RDBMS and HBase. HBase in the Big data context has a lot of benefits over RDBMS. The listed differences below make it understandable why HBASE is popular in Hadoop (or Bigdata) platform.  5 HBase Vs. RDBMS Top Functional Differences Here're the differences unlock now. Random Accessing HBase handles a large amount of data that is store in a distributed manner in the column-oriented format while RDBMS is systematic storage of a database that cannot support a random manner for accessing the database. Database Rules RDBMS strictly follows Codd's 12 rules with fixed schemas and row-oriented manner of database and also follows ACID properties. HBase follows BASE properties and implements complex queries. Secondary indexes, complex inner and outer joins, count, sum, sort, group, and data of page and table can easily be accessible by RDBMS. Storage From small to medium storage application there is the use of RDBMS that provides the solution with MyS

Python Useful Tuple Vs List Differences

Here're the quick differences between Tuple and List. This list is useful for your projects and interviews. 

Here're quick differences between List and Tuple


Tuple Vs. Lists in Python 

List

  1. Comma-separated elements inside a square bracket [] make a list.
  2. The elements are indexed. It starts from '0'
  3. These you need to enclose in a single quote and separate by a comma.
  4. A list can contain another list, which is called a NESTED list.
  5. Use type() function to get the type of data it is.
  6. The list is mutable (you can change the data). The objects (elements) can be of different data types.
  7. Here're examples on the List.

Tuple

  1. The elements comma-separated and enclosed in parenthesis () 
  2. The elements are indexed. It starts from '0'
  3. A tuple can have heterogeneous data (integer, float, string, list, etc.)
  4. A tuple is immutable. So, you can't change the elements.
  5. Use type() function to get the type of data it is. 
  6. Here're examples of Tuple.

List Example

#Illustration of creating a list 
new_list=[1, 2, 3, 4] 
print(new_list) 


# Homogeneous data elements 
new_list1=[1, "John", 55.5] 
print(new_list1) 


# Heterogeneous data elements 
new_list2=[111, [1, "Clara", 75.5]] 
# Nested list 
print(new_list2)

Output



[1, 2, 3, 4]
[1, ‘John’, 55.5]
[111, [1, ‘Clara’, 75.5]]



Tuple Example


#Illustration of unpacking a tuple 
 new_tuple2=(111, [1, "Clara", 75.5], (2, "Simon", 80.5)) 

# Nested tuple 
print(new_tuple2) x, y, z=new_tuple2 
print(x) 
print(y) 
print(z) 


Output



111
[1, ‘Clara’, 75.5]
(2, ‘Simon’, 80.5)

Comments

Popular posts from this blog

How to Fix Python Syntax Errors Quickly

Hyperledger Fabric: 20 Real Interview Questions

7 AWS Interview Questions asked in Infosys, TCS