Databases: glossary terms

Databases explained: SQL and NoSQL, keys, indexes, transactions, replication and the trade-offs between them.

शब्दकोश · डेटाबेसACID (Database Properties)ACID stands for atomicity, consistency, isolation, and durability, the four guarantees that make database transactions reliable even during errors and crashes.शब्दकोश · डेटाबेसCAP TheoremThe CAP theorem states that a distributed data store facing a network partition must choose between consistency and availability.शब्दकोश · डेटाबेसCRUDCRUD stands for Create, Read, Update, and Delete, the four basic operations for managing persistent data in databases and applications.शब्दकोश · डेटाबेसDatabaseA database is an organized collection of data stored electronically so applications can save, search, update, and retrieve it reliably and efficiently.शब्दकोश · डेटाबेसDatabase BackupA database backup is a saved copy of database data that lets you restore it after corruption, accidental deletion, hardware failure, or an attack.शब्दकोश · डेटाबेसDatabase Connection PoolA connection pool keeps a set of open database connections ready for reuse, avoiding the cost of opening a new one for every request and capping server load.शब्दकोश · डेटाबेसDatabase DeadlockA database deadlock happens when two transactions each hold locks the other needs, so neither can proceed until the database cancels one of them.शब्दकोश · डेटाबेसDatabase IndexA database index is a separate data structure that lets the database find rows by column values quickly instead of scanning the whole table.शब्दकोश · डेटाबेसDatabase MigrationA database migration is a versioned script that changes a database schema or data, letting teams apply and track changes consistently across environments.शब्दकोश · डेटाबेसDatabase NormalizationDatabase normalization is the process of structuring tables to reduce redundancy and update anomalies by splitting data into related tables.शब्दकोश · डेटाबेसDatabase PartitioningDatabase partitioning divides a large table into smaller parts, often by date or key range, within one server to speed queries and simplify data retention.शब्दकोश · डेटाबेसDatabase ReplicationDatabase replication copies data from one database server to others in near real time, improving availability, read capacity, and disaster recovery.शब्दकोश · डेटाबेसDatabase SchemaA database schema is the formal definition of a database structure, including its tables, columns, data types, keys, indexes, and constraints.शब्दकोश · डेटाबेसDatabase ShardingDatabase sharding splits a large dataset across multiple servers, each holding a subset of rows, so storage and write load can scale horizontally.शब्दकोश · डेटाबेसDatabase TransactionA database transaction groups several operations into one all-or-nothing unit of work, committed together on success or rolled back together on failure.शब्दकोश · डेटाबेसDatabase TriggerA database trigger is code that runs automatically when a row is inserted, updated, or deleted, used for auditing, validation, and syncing derived data.शब्दकोश · डेटाबेसDatabase ViewA database view is a saved query that behaves like a virtual table, simplifying complex queries and limiting what users can see.शब्दकोश · डेटाबेसDBMS (Database Management System)A DBMS is the software that creates, stores, secures, and queries databases, handling storage, concurrency, transactions, and access control for applications.शब्दकोश · डेटाबेसDocument DatabaseA document database stores records as self-contained JSON-like documents, letting each record hold nested data and vary in structure.शब्दकोश · डेटाबेसEventual ConsistencyEventual consistency is a model where replicas may briefly return different data after a write but converge to the same value if no further updates occur.शब्दकोश · डेटाबेसForeign KeyA foreign key is a column that references the primary key of another table, enforcing that related rows exist and keeping tables consistent.शब्दकोश · डेटाबेसGraph DatabaseA graph database stores data as nodes and relationships, making it efficient to query highly connected data such as social networks and recommendations.शब्दकोश · डेटाबेसKey-Value StoreA key-value store is a simple database that saves and retrieves each value by a unique key, offering very fast lookups and easy horizontal scaling.शब्दकोश · डेटाबेसMariaDBMariaDB is an open-source relational database forked from MySQL that stays largely compatible with it while adding its own engines and features.शब्दकोश · डेटाबेसMongoDBMongoDB is a popular document database that stores flexible JSON-like documents in collections and scales horizontally through replication and sharding.शब्दकोश · डेटाबेसMySQLMySQL is a widely used open-source relational database management system that powers many websites, including most WordPress installations.शब्दकोश · डेटाबेसN+1 Query ProblemThe N+1 query problem is a performance bug where code runs one query for a list and then one more query per item, causing hundreds of needless database calls.शब्दकोश · डेटाबेसNoSQLNoSQL covers databases that use non-tabular models such as documents, key-value pairs, wide columns, or graphs, often trading rigid structure for scale.शब्दकोश · डेटाबेसORM (Object-Relational Mapping)An ORM is a library that maps database tables to objects in a programming language, so code can query and save data without writing raw SQL.शब्दकोश · डेटाबेसPostgreSQLPostgreSQL is an open-source object-relational database known for standards compliance, strong ACID guarantees, and rich features like JSONB and extensions.शब्दकोश · डेटाबेसPrimary KeyA primary key is a column or set of columns whose values uniquely identify each row in a table, never repeating and never being null.शब्दकोश · डेटाबेसQuery Execution PlanA query execution plan is the step-by-step strategy a database chooses to run a query, showing scans, index use, join methods, and estimated costs.शब्दकोश · डेटाबेसQuery OptimizationQuery optimization is the process of making database queries faster and cheaper by choosing better plans, adding indexes, and rewriting inefficient SQL.शब्दकोश · डेटाबेसRedisRedis is an in-memory data store used as a cache, session store, message broker, and fast key-value database with data structures like lists and sets.शब्दकोश · डेटाबेसRelational DatabaseA relational database stores data in tables of rows and columns, links tables through keys, and is queried with SQL while enforcing constraints.शब्दकोश · डेटाबेसSQL (Structured Query Language)SQL is the standard language for defining, querying, and modifying data in relational databases, using statements such as SELECT, INSERT, and UPDATE.शब्दकोश · डेटाबेसSQL JOINA SQL JOIN combines rows from two or more tables based on a related column, letting one query return data that is stored in separate tables.शब्दकोश · डेटाबेसSQLiteSQLite is a lightweight, serverless relational database stored in a single file, embedded directly into applications such as mobile apps and browsers.शब्दकोश · डेटाबेसStored ProcedureA stored procedure is a named, precompiled set of SQL statements saved inside the database and run on demand, often with parameters.शब्दकोश · डेटाबेसTime-Series DatabaseA time-series database is optimized for storing and querying timestamped data such as metrics, sensor readings, and logs, with fast writes.