SlideShare a Scribd company logo
1 of 32
O Numeric – Integers, Floating-Point, Fixed-Point and Bit-
  field
O Character – Text strings
O Binary – Binary data strings
O Temporal – Time and Dates
• Decimal(p,s) – 4 Bytes per 9 digits – P: Max 65 - S: Max 30
• BIT(n)– 1Byte per 8 digits
O MyISAM
O InnoDB
O Memory
O Archive
O BlackHole
O CSV
O   Represents each table using three files:
     O   A format file--stores the definition of the table structure (mytable.frm)
     O   A data file--stores the contents of table rows (mytable.MYD)
     O   An index file that stores any indexes on the table (mytable.MYI)
O   The most flexible AUTO_INCREMENT column handling of all the storage engines
O   Can be converted into fast, compressed, read-only tables to save space
O   Manages contention between queries for MyISAM table access using table-level
    locking
O   Supports FULLTEXT searching and spatial data types
O   Supports for geometric spatial extensions
O   The table storage format is portable, so table files can be copied directly to another
    host and used by a server there
O   Can improve performance by limiting table size to a certain number of rows
O   When loading data into an empty table, updating of non-unique indexes can be
    disabled and then reenabled after loading the data
O    Tables take up very little space
PROs
O   Max. tablesize 65535 TB (unless constrained by OS or file system)
O   Low storage cost (efficient storage handling)
O   Support for B-Tree, FullText, and spatial indexes
O   Very fast insert performance
O   Very fast query performance
O   Maintains accurate count of number of rows stored in table (SELECT COUNT(*) very
    fast).
O   Support for prefix-length index keys
            CONs
O   No support for transactions
O   Table-level locking
O   No crash recovery
O   Blocking online backup
O   No support for foreign key constraints
O   Each InnoDB table is represented on disk by an .frm format file in the database
    directory, as well as data and index storage in the InnoDB tablespace:
     O   The tablespace is a set of files (1 or more) that InnoDB uses to store data and
         indexes
     O   By default, InnoDB uses a single tablespace that is shared by all tables
     O   Table sizes can exceed the maximum file size allowed by the filesystem
     O   Can configure InnoDB to create each table with its own tablespace
O Supports transactions, with COMMIT and ROLLBACK
O Provides full ACID compliance
O Provides auto-recovery after a crash of the MySQL server
O Row level locking with MVCC (Multi-Versioning Concurrency Control) and non-
  locking reads
O Supports foreign keys and referential integrity, including cascaded deletes and
  updates
O Supports consistent and online logical backup
O TableSpace
O --innodb-file-per-table
PROs
O   ACID-compliant
O   Support for crash recovery
O   High storage limit (64TB per tablespace, practically limited by file system)
O   Unlimited row-level locking
O   Support for foreign key constraints
O   MVCC support
O   Clustered, B+Tree index support
O   MySQL-supplied online, non-blocking backup
O   Advanced memory cache mechanisms
             CONs
O   No full-text or spacial index support
O   Faster online logical backup utility an add-on cost option (Hot Backup)
O   Requires more disk and memory resources
O Each table is represented on disk by an .frm format file in the
    database directory. Table data and indexes are stored in
    memory
O   In-memory storage results in very fast performance
O   Contents do not survive a restart of the server (structure
    survives, but table contains zero rows)
O   Limited by max_heap_table_size so they do not get too
    large
O   MySQL manages query contention using table-level locking.
    Deadlock cannot occur.
O   Cannot contain TEXT or BLOB columns
O   Can use different character sets for different columns
PROs
O Extremely fast read and write operations
O Support for tree and hash indexes
O Main memory database management

           CONs
O   Data is not persistent between server shutdown’s
O   No support for transactions
O   No support for foreign keys
O   No full-text or spatial index support
O   Table level locking
O   Cannot store BLOB or Text data
O Each table is represented on disk only by an .frm format file in
    the database directory.
O   Data and metadata files have extensions of .ARZ and .ARM,
    respectively.
O   Does not support indexes.
O   Supports INSERT and SELECT, but not DELETE, REPLACE,
    or UPDATE.
O   Supports ORDER BY operations, BLOB columns, and
    basically all but spatial data types.
O   Uses row-level locking.
O   Supports AUTO_INCREMENT columns.
O Each table is represented on disk by an .frm format
    file in the database directory.
O   Data file (plain text) has a .csv extension, and is in
    comma-separated values format.
O   Metadata files are created with the extension .csm.
O   Does not support indexes.
O   Data can be copied from the database directly and
    transferred to a client such as a spreadsheet
    application, and the table may be opened in a
    spreadsheet format.
O Verification of dump file syntax.
O Measurement of the overhead from binary
  logging, by comparing performance using
  BLACKHOLE with and without binary logging
  enabled.
O BLACKHOLE is essentially a "no-op" storage
  engine, so it could be used for finding
  performance bottlenecks not related to the
  storage engine itself.
DELIMITER $$
CREATE EVENT copyProcesslist2
ON SCHEDULE EVERY 1 SECOND
STARTS '2012-03-31 10:00:00'
ENDS '2012-04-01 10:00:00'
ON COMPLETION PRESERVE
DISABLE
DO
 BEGIN
   REPLACE INTO world.processlist SELECT * FROM information_schema.processlist;
 END;
END
$$
DELIMITER $$
CREATE PROCEDURE `principal`.`calculaSaldo` (IN conta INT )
BEGIN
   SELECT count(saldo) FROM extrato WHERE idConta = conta;
END
$$
O   ALL and ALL PRIVILEGES are shorthand for "all privileges except GRANT
    OPTION." That is, they are shorthand for granting all privileges except the ability to
    give privileges to other accounts.

More Related Content

What's hot

Glusterfs session #2 1 layer above disk filesystems
Glusterfs session #2   1 layer above disk filesystemsGlusterfs session #2   1 layer above disk filesystems
Glusterfs session #2 1 layer above disk filesystemsPranith Karampuri
 
Secondary storage structure
Secondary storage structureSecondary storage structure
Secondary storage structurePriya Selvaraj
 
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...Yandex
 
Optimizing columnar stores
Optimizing columnar storesOptimizing columnar stores
Optimizing columnar storesIstvan Szukacs
 
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...Erlang Solutions
 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basicSanoj Kumar
 
Learn about log structured file system
Learn about log structured file systemLearn about log structured file system
Learn about log structured file systemGang He
 
Documentation with Sphinx
Documentation with SphinxDocumentation with Sphinx
Documentation with SphinxAkshay Mathur
 
Data Compression In SQL
Data Compression In SQLData Compression In SQL
Data Compression In SQLBoosh Booshan
 
Mongo db cluster administration and Shredded Databases
Mongo db cluster administration and Shredded DatabasesMongo db cluster administration and Shredded Databases
Mongo db cluster administration and Shredded DatabasesAbhinav Jha
 
Indy pass writing efficient queries – part 1 - indexing
Indy pass   writing efficient queries – part 1 - indexingIndy pass   writing efficient queries – part 1 - indexing
Indy pass writing efficient queries – part 1 - indexingeddiew
 
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...PingCAP
 
Glusterfs session #13 replication introduction
Glusterfs session #13   replication introductionGlusterfs session #13   replication introduction
Glusterfs session #13 replication introductionPranith Karampuri
 
EncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionEncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionYue Chen
 

What's hot (19)

Glusterfs session #2 1 layer above disk filesystems
Glusterfs session #2   1 layer above disk filesystemsGlusterfs session #2   1 layer above disk filesystems
Glusterfs session #2 1 layer above disk filesystems
 
Streams and Files
Streams and FilesStreams and Files
Streams and Files
 
Secondary storage structure
Secondary storage structureSecondary storage structure
Secondary storage structure
 
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...
Андрей Годин - Базы данных: Документоориентированная горизонтально масштабиру...
 
Optimizing columnar stores
Optimizing columnar storesOptimizing columnar stores
Optimizing columnar stores
 
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
Efficient Erlang - Performance and memory efficiency of your data by Dmytro L...
 
C files
C filesC files
C files
 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basic
 
Files in c++
Files in c++Files in c++
Files in c++
 
Learn about log structured file system
Learn about log structured file systemLearn about log structured file system
Learn about log structured file system
 
File organization
File organizationFile organization
File organization
 
Documentation with Sphinx
Documentation with SphinxDocumentation with Sphinx
Documentation with Sphinx
 
Data Compression In SQL
Data Compression In SQLData Compression In SQL
Data Compression In SQL
 
Mongo db cluster administration and Shredded Databases
Mongo db cluster administration and Shredded DatabasesMongo db cluster administration and Shredded Databases
Mongo db cluster administration and Shredded Databases
 
Mapping
MappingMapping
Mapping
 
Indy pass writing efficient queries – part 1 - indexing
Indy pass   writing efficient queries – part 1 - indexingIndy pass   writing efficient queries – part 1 - indexing
Indy pass writing efficient queries – part 1 - indexing
 
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
 
Glusterfs session #13 replication introduction
Glusterfs session #13   replication introductionGlusterfs session #13   replication introduction
Glusterfs session #13 replication introduction
 
EncExec: Secure In-Cache Execution
EncExec: Secure In-Cache ExecutionEncExec: Secure In-Cache Execution
EncExec: Secure In-Cache Execution
 

Viewers also liked

La noticia de hoy 15 06 2012
La noticia de hoy 15 06 2012La noticia de hoy 15 06 2012
La noticia de hoy 15 06 2012megaradioexpress
 
2010 Honda Accord Crosstour Omaha Nebraska
2010 Honda Accord Crosstour Omaha Nebraska2010 Honda Accord Crosstour Omaha Nebraska
2010 Honda Accord Crosstour Omaha NebraskaHonda Cars of Bellevue
 
Universityof tokyo02032011tagumaoecd
Universityof tokyo02032011tagumaoecdUniversityof tokyo02032011tagumaoecd
Universityof tokyo02032011tagumaoecdDeborah Roseveare
 
2.3.open day8sep iscrib
2.3.open day8sep iscrib2.3.open day8sep iscrib
2.3.open day8sep iscribALTIC Altic
 
打造全功能型团队:核心团队建设之路 V2.0
打造全功能型团队:核心团队建设之路 V2.0打造全功能型团队:核心团队建设之路 V2.0
打造全功能型团队:核心团队建设之路 V2.0Michael Shieh
 
Pd Kai#3 Startup Process
Pd Kai#3 Startup ProcessPd Kai#3 Startup Process
Pd Kai#3 Startup Processnagachika t
 

Viewers also liked (7)

La noticia de hoy 15 06 2012
La noticia de hoy 15 06 2012La noticia de hoy 15 06 2012
La noticia de hoy 15 06 2012
 
2010 Honda Accord Crosstour Omaha Nebraska
2010 Honda Accord Crosstour Omaha Nebraska2010 Honda Accord Crosstour Omaha Nebraska
2010 Honda Accord Crosstour Omaha Nebraska
 
Universityof tokyo02032011tagumaoecd
Universityof tokyo02032011tagumaoecdUniversityof tokyo02032011tagumaoecd
Universityof tokyo02032011tagumaoecd
 
Linux
LinuxLinux
Linux
 
2.3.open day8sep iscrib
2.3.open day8sep iscrib2.3.open day8sep iscrib
2.3.open day8sep iscrib
 
打造全功能型团队:核心团队建设之路 V2.0
打造全功能型团队:核心团队建设之路 V2.0打造全功能型团队:核心团队建设之路 V2.0
打造全功能型团队:核心团队建设之路 V2.0
 
Pd Kai#3 Startup Process
Pd Kai#3 Startup ProcessPd Kai#3 Startup Process
Pd Kai#3 Startup Process
 

Similar to Falando de MySQL

Data Organization in InnoDB
Data Organization in InnoDBData Organization in InnoDB
Data Organization in InnoDBZhaoyang Wang
 
SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)Shy Engelberg
 
Lecture storage-buffer
Lecture storage-bufferLecture storage-buffer
Lecture storage-bufferKlaas Krona
 
Sql introduction
Sql introductionSql introduction
Sql introductionvimal_guru
 
VLDB Administration Strategies
VLDB Administration StrategiesVLDB Administration Strategies
VLDB Administration StrategiesMurilo Miranda
 
SQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - AdvancedSQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - AdvancedTony Rogerson
 
Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon RedshiftBest Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon RedshiftAmazon Web Services
 
Myth busters - performance tuning 103 2008
Myth busters - performance tuning 103 2008Myth busters - performance tuning 103 2008
Myth busters - performance tuning 103 2008paulguerin
 
Maryna Popova "Deep dive AWS Redshift"
Maryna Popova "Deep dive AWS Redshift"Maryna Popova "Deep dive AWS Redshift"
Maryna Popova "Deep dive AWS Redshift"Lviv Startup Club
 

Similar to Falando de MySQL (20)

Data Organization in InnoDB
Data Organization in InnoDBData Organization in InnoDB
Data Organization in InnoDB
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
 
SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)
 
Lecture storage-buffer
Lecture storage-bufferLecture storage-buffer
Lecture storage-buffer
 
Vertica
VerticaVertica
Vertica
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
VLDB Administration Strategies
VLDB Administration StrategiesVLDB Administration Strategies
VLDB Administration Strategies
 
Tokyocabinet
TokyocabinetTokyocabinet
Tokyocabinet
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
 
SQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - AdvancedSQL Server 2014 Memory Optimised Tables - Advanced
SQL Server 2014 Memory Optimised Tables - Advanced
 
Oracle Introduction
Oracle Introduction Oracle Introduction
Oracle Introduction
 
Dbmsunit v
Dbmsunit vDbmsunit v
Dbmsunit v
 
Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon RedshiftBest Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon Redshift
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
Database Sizing
Database SizingDatabase Sizing
Database Sizing
 
Myth busters - performance tuning 103 2008
Myth busters - performance tuning 103 2008Myth busters - performance tuning 103 2008
Myth busters - performance tuning 103 2008
 
TileDB
TileDBTileDB
TileDB
 
DBMS
DBMSDBMS
DBMS
 
DB2 TABLESPACES
DB2 TABLESPACESDB2 TABLESPACES
DB2 TABLESPACES
 
Maryna Popova "Deep dive AWS Redshift"
Maryna Popova "Deep dive AWS Redshift"Maryna Popova "Deep dive AWS Redshift"
Maryna Popova "Deep dive AWS Redshift"
 

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

Falando de MySQL

  • 1.
  • 2.
  • 3. O Numeric – Integers, Floating-Point, Fixed-Point and Bit- field O Character – Text strings O Binary – Binary data strings O Temporal – Time and Dates
  • 4.
  • 5.
  • 6. • Decimal(p,s) – 4 Bytes per 9 digits – P: Max 65 - S: Max 30 • BIT(n)– 1Byte per 8 digits
  • 7.
  • 8.
  • 9.
  • 10. O MyISAM O InnoDB O Memory O Archive O BlackHole O CSV
  • 11. O Represents each table using three files: O A format file--stores the definition of the table structure (mytable.frm) O A data file--stores the contents of table rows (mytable.MYD) O An index file that stores any indexes on the table (mytable.MYI) O The most flexible AUTO_INCREMENT column handling of all the storage engines O Can be converted into fast, compressed, read-only tables to save space O Manages contention between queries for MyISAM table access using table-level locking O Supports FULLTEXT searching and spatial data types O Supports for geometric spatial extensions O The table storage format is portable, so table files can be copied directly to another host and used by a server there O Can improve performance by limiting table size to a certain number of rows O When loading data into an empty table, updating of non-unique indexes can be disabled and then reenabled after loading the data O Tables take up very little space
  • 12. PROs O Max. tablesize 65535 TB (unless constrained by OS or file system) O Low storage cost (efficient storage handling) O Support for B-Tree, FullText, and spatial indexes O Very fast insert performance O Very fast query performance O Maintains accurate count of number of rows stored in table (SELECT COUNT(*) very fast). O Support for prefix-length index keys CONs O No support for transactions O Table-level locking O No crash recovery O Blocking online backup O No support for foreign key constraints
  • 13. O Each InnoDB table is represented on disk by an .frm format file in the database directory, as well as data and index storage in the InnoDB tablespace: O The tablespace is a set of files (1 or more) that InnoDB uses to store data and indexes O By default, InnoDB uses a single tablespace that is shared by all tables O Table sizes can exceed the maximum file size allowed by the filesystem O Can configure InnoDB to create each table with its own tablespace O Supports transactions, with COMMIT and ROLLBACK O Provides full ACID compliance O Provides auto-recovery after a crash of the MySQL server O Row level locking with MVCC (Multi-Versioning Concurrency Control) and non- locking reads O Supports foreign keys and referential integrity, including cascaded deletes and updates O Supports consistent and online logical backup
  • 15. PROs O ACID-compliant O Support for crash recovery O High storage limit (64TB per tablespace, practically limited by file system) O Unlimited row-level locking O Support for foreign key constraints O MVCC support O Clustered, B+Tree index support O MySQL-supplied online, non-blocking backup O Advanced memory cache mechanisms CONs O No full-text or spacial index support O Faster online logical backup utility an add-on cost option (Hot Backup) O Requires more disk and memory resources
  • 16. O Each table is represented on disk by an .frm format file in the database directory. Table data and indexes are stored in memory O In-memory storage results in very fast performance O Contents do not survive a restart of the server (structure survives, but table contains zero rows) O Limited by max_heap_table_size so they do not get too large O MySQL manages query contention using table-level locking. Deadlock cannot occur. O Cannot contain TEXT or BLOB columns O Can use different character sets for different columns
  • 17. PROs O Extremely fast read and write operations O Support for tree and hash indexes O Main memory database management CONs O Data is not persistent between server shutdown’s O No support for transactions O No support for foreign keys O No full-text or spatial index support O Table level locking O Cannot store BLOB or Text data
  • 18. O Each table is represented on disk only by an .frm format file in the database directory. O Data and metadata files have extensions of .ARZ and .ARM, respectively. O Does not support indexes. O Supports INSERT and SELECT, but not DELETE, REPLACE, or UPDATE. O Supports ORDER BY operations, BLOB columns, and basically all but spatial data types. O Uses row-level locking. O Supports AUTO_INCREMENT columns.
  • 19. O Each table is represented on disk by an .frm format file in the database directory. O Data file (plain text) has a .csv extension, and is in comma-separated values format. O Metadata files are created with the extension .csm. O Does not support indexes. O Data can be copied from the database directly and transferred to a client such as a spreadsheet application, and the table may be opened in a spreadsheet format.
  • 20. O Verification of dump file syntax. O Measurement of the overhead from binary logging, by comparing performance using BLACKHOLE with and without binary logging enabled. O BLACKHOLE is essentially a "no-op" storage engine, so it could be used for finding performance bottlenecks not related to the storage engine itself.
  • 21.
  • 22. DELIMITER $$ CREATE EVENT copyProcesslist2 ON SCHEDULE EVERY 1 SECOND STARTS '2012-03-31 10:00:00' ENDS '2012-04-01 10:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN REPLACE INTO world.processlist SELECT * FROM information_schema.processlist; END; END $$
  • 23. DELIMITER $$ CREATE PROCEDURE `principal`.`calculaSaldo` (IN conta INT ) BEGIN SELECT count(saldo) FROM extrato WHERE idConta = conta; END $$
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. O ALL and ALL PRIVILEGES are shorthand for "all privileges except GRANT OPTION." That is, they are shorthand for granting all privileges except the ability to give privileges to other accounts.