Atikh's DBA blog
  • Home
  • Oracle
  • MySQL
  • MongoDB
  • PostgreSQL
  • Snowflake
  • About Me
  • Contact Us

MySQL Storage Engines (Part 2)

 Atikh Shaikh     BDB, different types of storage engines in mysql, Engine vs Type, FEDERATED, mysql, mysql storage engines, storage engine, TSTvsNTST     No comments   

Below are remaining mysql storage engines as discussed in part 1
BDB
Sleepycat software provided mysql with Berkeley DB(BDB) transnational storage engine
activated in MySQL-Max binary distributions
have great chances of surviving crashes and also capable of COMMIT and ROLLBACK operations
It require to be patched before using this with MySQL
EXAMPLE
added in 4.1.3, it is stub engine that does nothing
its purpose is to server as an example in MySQL source code
tables definition file <table_name>.frm
Does not support indexing
FEDERATED
Added in 5.0.3, access data in tables of remote databases rather than locally held tables
when FEDERATED table is created it only creates definition file i.e. <tablename>.frm because actual data is present in remote database
to read results rows fetched one at a time by using mysql_fetch_row function.
basic flow is
SQL calls issued locally
MySQL handler API (data in handler format)
MySQL handler API (data converted to SQL calls)
remote database->MYSQL client API
convert results set to handler format
Handler API->Results rows affected count to local
ARCHIVE
It was added in 4.1.3, used to store large amount of data without indexing with very small footprint
When ARCHIVE table is created server creates definition file in db directory i.e.<tablename>.frm
Data storage engine creates several other files all with name beginning with tablename
Data file <tablename>.ARZ
Metadata file <tablename>.ARM
File created during optimization operations <tablename>.ARN
Only support SELECT(complete table scan) and INSERT(records are compressed)
Use of OPTIMIZE TABLE can analyze table and pack it into smaller format
CSV
was added in 4.1.4, stores data in text files using comma separated value format
when CSV table is created server creates definition file <tablename>.frm
storage engine also create data file <tablename>.csv
data file is plain text file.
ENGINE Vs TYPE
two different keywords to archive same thing.
ENGINE – introduced in 4.0.18
TYPE- Before 4.0.18 from 3.23.0


TRANSACTION-SAFE(TST) v/s NON-TRANSACTION-SAFE(NTST) Tables
TST have advantages over NTST
Safer in cases of crashes or hardware problems.
can be recover either by automatic recover up plus the transaction log
number of statement are accepted as combined during COMMIT
ROLLBACK can be executed (if no AUTO COMMIT)
if update failed all changes will be restored
better concurrency
NTST have several advantages on its own
no transaction overhead, much faster
lower disk space requirements
less memory require to preform operation

go to part 1
  • Share This:  
  •  Facebook
  •  Twitter
  •  Instagram
  •  Pin
  •  linkedin
  •  reddit
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Author

Atikh Shaikh
View my complete profile

Categories

  • MongoDB (18)
  • Oracle 12c (30)
  • Oracle12cR2 New Feature (3)
  • PostgreSQL (20)
  • RMAN (10)
  • Snowflake (8)
  • mysql (23)
  • oracle (73)

Blog Archive

  • ▼  2018 (38)
    • ▼  November (25)
      • Introduction On MySQL
      • SQL Modes in MySQL
      • MySQL Version explained
      • MySQL Storage Engines (Part 1)
      • MySQL Storage Engines (Part 2)
      • Login to MySQL Database on Linux
      • Error Code: 1419. You do not have the SUPER privil...
      • Create MySQL database on Linux
      • Create New User in MySQL Database
      • MySQL Default database | MySQL System Database
      • Oracle ASM Basic Commands
      • Oracle Database Schema Refresh
      • Create User in Oracle Database Pre-12c and 12c
      • RMAN Disk backup and List or Report RMAN Backup
      • RMAN Backup of Single Datafile and List Backup
      • Difference Between User, Service account and Schem...
      • Create MySQL Database Backup | mysqldump mysqlbackup
      • Switching between ARCHIVELOG Mode and NOARCHIVELOG...
      • Introduction to MongoDB
      • Introduction to PostgreSQL
      • Installation of PostgreSQL 9.6 on Windows
      • Installation of MongoDB on Windows
      • Oracle DBA Scripts
      • Databases, Collections and Documents in MongoDB
      • CRUD (Create, Read, Update, Delete) Operations in ...
    • ►  December (13)
  • ►  2019 (33)
    • ►  January (15)
    • ►  February (6)
    • ►  March (2)
    • ►  April (5)
    • ►  May (5)
  • ►  2020 (5)
    • ►  April (1)
    • ►  May (2)
    • ►  July (2)
  • ►  2021 (8)
    • ►  June (3)
    • ►  July (3)
    • ►  August (1)
    • ►  December (1)
  • ►  2022 (33)
    • ►  May (3)
    • ►  June (10)
    • ►  July (3)
    • ►  August (4)
    • ►  September (8)
    • ►  October (3)
    • ►  November (2)
  • ►  2023 (14)
    • ►  February (1)
    • ►  April (5)
    • ►  May (2)
    • ►  June (1)
    • ►  September (1)
    • ►  October (1)
    • ►  December (3)
  • ►  2024 (5)
    • ►  January (2)
    • ►  March (3)
  • ►  2025 (5)
    • ►  March (1)
    • ►  April (3)
    • ►  May (1)

Popular Posts

  • ORA-29283: invalid file operation: unexpected "LFI" error (1509)[29437]
    I was trying to export the schema in my windows PC, it got stuck with below error    C:\Users\shaik\Videos\technodba exp>expdp userid...
  • Oracle Dataguard Broker Configuration (DGMGRL)
    Data Guard Broker is a command-line interface that makes managing primary and standby databases easy. DBA can use a single command to switch...
  • ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
    In previous articles, we have learned about user creation and grants  in MySQL in detail, but there are a few privileges called global priv...
  • PostgreSQL : How to get data directory location for PostgreSQL instance
    Sometimes, you start working on a PostgreSQL instance but forget about the data directory, here we will discuss different methods to know th...
  • Oracle 23ai : The all new Hybrid Read-Only for pluggable databases (PDBs)
      The latest Oracle database version, Oracle 23ai, introduced a new open mode called Hybrid Read-Only for pluggable databases (PDBs). Local ...

Labels

oracle Oracle 12c mysql PostgreSQL MongoDB oracle 19c Oracle23c oracle19c Orale PDB-CDB oracle12c python AWS Oracle ASM Virtualbox pluggable database storage engine

Pages

  • Disclaimer
  • Privacy Policy

Follow TechnoDBA

Copyright © Atikh's DBA blog | Powered by Blogger