Open In App

Difference between SQLite and Cassandra

Last Updated : 03 May, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

1. SQLite : SQLite is a software library that provides a relational database management system (RDBMS). It was designed by D. Richard Hipp in August 2000. The design goals of SQLite were to allow the program to be operated without installing a database management system (DBMS) or requiring a database administrator. 2. Cassandra : Cassandra is a free and open-source, distributed, wide column store, NoSQL database management system. It was developed by Apache Software Foundation and initially released in July 2008. Cassandra is designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. 
Difference between SQLite and Cassandra :

S.No. SQLITE CASSANDRA
1. It was developed By D. Richard Hipp in August 2000. It was developed by Apache Software foundation and released in July 2008.
2. SQLite is developed only in C language. Cassandra is also developed only in C language.
3. It is widely used in-process RDBMS. It is wide-column store based on ideas of BigTable and DynamoDB.
4. The primary database model for SQLite is RDBMS. The primary database model for Cassandra is Wide Column Store.
5. SQLite does not require a server to run. Hence, it is serverless. Server operating systems for Cassandra are BSD, Linux, OS X and Windows.
6. It supports secondary indexing. It supports secondary indexing but in a restricted way, i.e., only equality queries, not always the best performing solution.
7. SQLite provides ACID transactions. Cassandra does not provide ACID transactions.
8. It does not support any partitioning methods. In Cassandra, partitioning can be done using sharding.
9. It does not support any replication methods. It support only one replication methods – Selectable Replication Factor.
10. SQLite provides the concept of Referential Integrity and has Foreign Keys. Cassandra does not provide the concept of Referential Integrity. Hence, no Foreign Keys.
11. It supports in-memory capabilities. It does not support in-memory capabilities.
12 SQLite is a relational database that uses tables to store data, with columns and rows defining the schema.  Cassandra, on the other hand, is a NoSQL database that uses a column-family data model, where data is organized into column families and columns, with each column containing a value for a specific attribute.
13 SQLite is designed for single-machine use and does not scale horizontally, meaning that it cannot be used in a cluster  designed to scale horizontally, with the ability to add nodes to a cluster to handle increasing amounts of data and traffic.
14 SQLite is often used in small-scale applications that require a lightweight and embedded database, such as mobile apps or small websites.  Cassandra is often used in large-scale distributed applications that require high availability and scalability, such as social media platforms or e-commerce websites.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads