Tuesday, 28 May 2024

Summary of NoSQL Databases

NoSQL Databases: A Summary

FeatureKey-Value StoreDocument StoreColumn FamilyGraph Database
Data ModelKey-Value PairsDocuments (JSON-like)ColumnsNodes & Relationships
SchemaSchemalessFlexible SchemaFlexible SchemaFlexible Schema
Use CasesCaching, Session Data, PreferencesContent Management, User ProfilesTime Series Data, Sensor DataSocial Networks, Recommendation Systems
Advantages- Fast Writes & Reads - Simple Scalability- Flexible Data Structures - Powerful Queries- Fast Reads for Specific Columns - Efficient Write Scalability- Excellent for Connected Data - Visualization & Analysis
Disadvantages- Limited Query Capabilities - No Relationships Between Data- Complex Multi-Operation Transactions- Complex Queries & Schema Changes- Not Ideal for High Volume Transactions
Potential UsersMemcached, Redis, DynamoDBMongoDB, CouchDB, DocumentDBCassandra, HBaseNeo4j, Cosmos DB





  • SQL Support: Some NoSQL databases support SQL-like interfaces.
  • ACID Compliance: Most NoSQL databases are not ACID compliant.

Choosing the Right NoSQL Database:

The best NoSQL database for your application depends on your specific needs. Consider factors like data model, query complexity, scalability requirements, and cost.

Wednesday, 13 March 2024

REFRESHER COURSE IN COMPUTER SCIENCE YOUTUBE LINKS

 CLOUD

https://www.youtube.com/watch?v=M-13NVkTTzM

https://www.youtube.com/watch?v=Qb6L9i2b0sk

https://www.youtube.com/watch?v=5q7-Rf9y2lQ

https://drive.google.com/file/d/1Et39IY48XjLHmSRPQxIe1ghBuSkZVkVc/view

https://www.youtube.com/watch?v=eEQg_m_lXVo



AUGMENTED REALITY :

https://www.youtube.com/watch?v=3oOSYfMDVFM&t=3s


https://www.youtube.com/watch?v=gVB97H_VP5s


nlp

https://www.youtube.com/watch?v=0NkSPJUBwJo

https://www.youtube.com/watch?v=3IAmlWhpWtc

https://www.youtube.com/watch?v=w17hhPAXdas


IOT:

https://www.youtube.com/watch?v=YR1zKl6tnrM


ml

https://www.youtube.com/watch?v=eZDAZcXPJ0U

https://www.youtube.com/watch?v=q14CQPkxdt4

https://www.youtube.com/watch?v=VCDb0MHTM7Y

https://www.youtube.com/watch?v=omeEjvwjh3g

https://www.youtube.com/watch?v=fSpXmdTHNZs



BLOCK CHAIN

https://www.youtube.com/watch?v=dBOeXgi_JFk


QUANTING COMPUTING

https://www.youtube.com/watch?v=T8NebqqHLW0


CYBER PANDEMIC

https://www.youtube.com/watch?v=qA9Sg9DWdgA

https://www.youtube.com/watch?v=i97bw12FkRE


Wednesday, 6 December 2023

life cycle of a thread notes

 A thread life cycle is always in one of these five states. It can move from one state to another state. In Java, the life cycle of thread has five states.

1. Newborn State

2. Runnable State

3. Running State

4. Blocked State

5. Dead State

  1. New : A thread begins its life cycle in the new state. It remains in this state until the start() method is called on it.
    Thread t = new Thread();

  2. Runnable : After invocation of start() method on new thread, the thread becomes runnable.
    Thread t = new Thread();
    t.start();

  3. Running : A thread is in running state if the thread scheduler has selected it.

t1.isAlive() - The isAlive() method returns true if the thread upon which it is called is still running otherwise it returns false.

  1. Waiting : A thread is in waiting state if it waits for another thread to perform a task. In this stage the thread is still alive.

Example1:   t1.join() waiting for t1 to complete its execution

Example2:   The state of thread t1 after invoking the method sleep() on it - TIMED_WAITING

Thread.sleep(400);

  1. Terminated : A thread enters the terminated state when it completes its task.

t1.stop()