Why NoSQL? Bigger data handling capability To handle Volume of data it allows data to be spread across commodity hardware Elastic scaling Scale out the storage Flexible Schema/fixed data model It does not need a organized schema. The schema is dynamic or fixed schema Integrated caching facility To Increase performance, NOSQL cache data in system …
Continue reading NoSQL and Advantages of NOSQLCassandra
CAP Theorem for a distributed architecture: Consistency: The data in database remains consistent after the execution of an operation. Example: After an insert operation all clients will see the same data Availability:The System is always On/Available. Partition Tolerance:The system continues to function even if the servers are not able to communicate with each other …
Continue reading CAP TheoremData Manipulation Language in Cassandra: Insert data to KeySpace: Syntax: <INSERTSTATEMENT> ::= INSERT INTO <TABLENAME> '(' <IDENTIFIER> ( ',' <IDENTIFIER>)* ')' VALUES'(' <TERM -OR- LITERAL> (',' <TERM -OR- LITERAL>)<em>')'(IF NOT EXIST)?( USING<OPTION> (AND<OPTION>)</em> )?<TERM -OR- LITERAL> ::= <TERM> | <COLLECTION-LITERAL> <OPTION> ::= TIMESTAMP <INTEGER>|TTL<INTEGER> Update data in KeySpace: Syntax: <UPDATE-STMT> ::= UPDATE<TABLE-NAME> (USING <OPTION> (AND …
Continue reading Data Manipulation Language in CassandraData Definition Language in Cassandra: You can create,alter,drop,truncate table/keyspaces in Cassandra. Create KeySpace: It is used to create a new keyspace Syntax: CREATE KEYSPACE <NAME> WITH STATEGY_CLASS = <STATEGY_NAME>[AND STRATEGY_OPTIONS;<OPTION>=<VALUE>[…]]; USE: It is used to switch to a keyspace to perform work Syntax: USE <KEYSPACE> Alter KeySpace: To change the existing keyspace Syntax: <CRETAE-KEYSPACE-STMT>::= ALTER …
Continue reading Data Definition Language in CassandraCassandra Query Language:(CQL) CQL is the SQL interface in Cassandra.CQL is intended to privide a simple,common and easier interface in Cassandra. Cassandra was originally developed with a Thrift RPC based approach and it was difficult to work with. So CQL was developed to overcome the Thrift RPC approach. It is similar to SQL but all …
Continue reading Cassandra Query Language (CQL)