SlideShare a Scribd company logo
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
$ grep innodb_buffer_pool /etc/my.cnf
innodb_buffer_pool_size = 10G

$ echo "show variables like 'innodb_buffer_pool_size'" 
  | mysql -t
+-------------------------+------------+
| Variable_name           | Value      |
+-------------------------+------------+
| innodb_buffer_pool_size | 2147483648 | = 2GB
+-------------------------+------------+
Mysql 4.0 casual
Mysql 4.0 casual
CREATE TABLE hoge (
    id int unsigned NOT NULL auto_increment primary key,
    level tinyint NOT NULL default '1',
    KEY level (level)
) Engine=InnoDB;

mysql> explain select id from hoge where level=2 order by id;
+----+-------------+-------+------+-------+--------------------------+
| id | select_type | table | type | key   | Extra                    |
+----+-------------+-------+------+-------+--------------------------+
| 1 | SIMPLE       | hoge | ref | level | Using where; Using index |
+----+-------------+-------+------+-------+--------------------------+
mysql> select version();
| 4.0.27-log |

mysql> explain select id from hoge where level=2 order by id;
+-------+------+-------+------------------------------------------+
| table | type | key    | Extra                                   |
+-------+------+-------+------------------------------------------+
| hoge | ref | level | Using where; Using index; Using filesort |
+-------+------+-------+------------------------------------------+
1 row in set (0.00 sec)
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
my $sth = $dbh->prepare(“SELECT GET_LOCK(?,300)”);
$sth->execute(q!injection”!)




#110214 15:50:09 server id 53721 log_pos 803   Query
thread_id=6     exec_time=0     error_code=0
SET TIMESTAMP=1297666209;
DO RELEASE_LOCK("injection””)
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual

More Related Content

What's hot (20)

PDF
ClickHouse Features for Advanced Users, by Aleksei Milovidov
Altinity Ltd
 
PDF
Angular Refactoring in Real World
bitbank, Inc. Tokyo, Japan
 
PPTX
App-o-Lockalypse now!
Oddvar Moe
 
PDF
From Javascript To Haskell
ujihisa
 
PDF
Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...
Altinity Ltd
 
PDF
Tricks every ClickHouse designer should know, by Robert Hodges, Altinity CEO
Altinity Ltd
 
PDF
ClickHouse Materialized Views: The Magic Continues
Altinity Ltd
 
PPTX
Syslog-ng Performance
Chakrit Phain
 
PDF
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
Altinity Ltd
 
PPT
Schema Design by Chad Tindel, Solution Architect, 10gen
MongoDB
 
PDF
A Practical Introduction to Handling Log Data in ClickHouse, by Robert Hodges...
Altinity Ltd
 
PDF
Data warehouse or conventional database: Which is right for you?
Data Con LA
 
PDF
Fun with click house window functions webinar slides 2021-08-19
Altinity Ltd
 
PDF
Tracing and awk in ns2
Pradeep Kumar TS
 
PPTX
Super Advanced Python –act1
Ke Wei Louis
 
PDF
[Droid knights 2019] Tensorflow Lite 부터 ML Kit, Mobile GPU 활용 까지
Jeongah Shin
 
PDF
Org Beamer
Hirwanto Iwan
 
PPT
Gearmam, from the_worker's_perspective copy
Brian Aker
 
ODP
Drizzle to MySQL, Stress Free Migration
Andrew Hutchings
 
PDF
日経平均上下予想Botを作った話
dokechin
 
ClickHouse Features for Advanced Users, by Aleksei Milovidov
Altinity Ltd
 
Angular Refactoring in Real World
bitbank, Inc. Tokyo, Japan
 
App-o-Lockalypse now!
Oddvar Moe
 
From Javascript To Haskell
ujihisa
 
Big Data in Real-Time: How ClickHouse powers Admiral's visitor relationships ...
Altinity Ltd
 
Tricks every ClickHouse designer should know, by Robert Hodges, Altinity CEO
Altinity Ltd
 
ClickHouse Materialized Views: The Magic Continues
Altinity Ltd
 
Syslog-ng Performance
Chakrit Phain
 
ClickHouse Query Performance Tips and Tricks, by Robert Hodges, Altinity CEO
Altinity Ltd
 
Schema Design by Chad Tindel, Solution Architect, 10gen
MongoDB
 
A Practical Introduction to Handling Log Data in ClickHouse, by Robert Hodges...
Altinity Ltd
 
Data warehouse or conventional database: Which is right for you?
Data Con LA
 
Fun with click house window functions webinar slides 2021-08-19
Altinity Ltd
 
Tracing and awk in ns2
Pradeep Kumar TS
 
Super Advanced Python –act1
Ke Wei Louis
 
[Droid knights 2019] Tensorflow Lite 부터 ML Kit, Mobile GPU 활용 까지
Jeongah Shin
 
Org Beamer
Hirwanto Iwan
 
Gearmam, from the_worker's_perspective copy
Brian Aker
 
Drizzle to MySQL, Stress Free Migration
Andrew Hutchings
 
日経平均上下予想Botを作った話
dokechin
 

Viewers also liked (7)

KEY
捗れ!Operation
Masahiro Nagano
 
KEY
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
KEY
Operation Oriented Web Applications / Yokohama pm7
Masahiro Nagano
 
KEY
グラフで捗る話#2 kansai.pm#14
Masahiro Nagano
 
KEY
Web Operations and Perl kansai.pm#14
Masahiro Nagano
 
PDF
My sql event_scheduler_casual_slideshare__
Tatsuro Hisamori
 
PDF
mysqlcasual6-next-key-lock
karupanerura
 
捗れ!Operation
Masahiro Nagano
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
Operation Oriented Web Applications / Yokohama pm7
Masahiro Nagano
 
グラフで捗る話#2 kansai.pm#14
Masahiro Nagano
 
Web Operations and Perl kansai.pm#14
Masahiro Nagano
 
My sql event_scheduler_casual_slideshare__
Tatsuro Hisamori
 
mysqlcasual6-next-key-lock
karupanerura
 
Ad

More from Masahiro Nagano (20)

PDF
Advanced nginx in mercari - How to handle over 1,200,000 HTTPS Reqs/Min
Masahiro Nagano
 
PDF
Rhebok, High Performance Rack Handler / Rubykaigi 2015
Masahiro Nagano
 
PDF
Big Master Data PHP BLT #1
Masahiro Nagano
 
PDF
Stream processing in Mercari - Devsumi 2015 autumn LT
Masahiro Nagano
 
PDF
メルカリのデータベース戦略 / PHPとMySQLの怖い話 MyNA会2015年8月
Masahiro Nagano
 
PDF
ISUCONの勝ち方 YAPC::Asia Tokyo 2015
Masahiro Nagano
 
PDF
Norikraで作るPHPの例外検知システム YAPC::Asia Tokyo 2015 LT
Masahiro Nagano
 
PDF
メルカリでのNorikraの活用、 Mackerelを添えて
Masahiro Nagano
 
PDF
Gazelle & CPAN modules for performance. Shibuya.pm Tech Talk #17 LT
Masahiro Nagano
 
PDF
Mackerel & Norikra mackerel meetup #4 LT
Masahiro Nagano
 
PDF
ISUCON4 予選問題で(中略)、”my.cnf”に1行だけ足して予選通過ラインを突破するの術
Masahiro Nagano
 
PDF
Isucon makers casual talks
Masahiro Nagano
 
PDF
blogサービスの全文検索の話 - #groonga を囲む夕べ
Masahiro Nagano
 
PDF
Gazelle - Plack Handler for performance freaks #yokohamapm
Masahiro Nagano
 
PDF
Dockerで遊んでみよっかー YAPC::Asia Tokyo 2014
Masahiro Nagano
 
PDF
Web Framework Benchmarksと Perl の現状報告会 YAPC::Asia Tokyo 2014 LT
Masahiro Nagano
 
PDF
ISUCONで学ぶ Webアプリケーションのパフォーマンス向上のコツ 実践編 完全版
Masahiro Nagano
 
PDF
Webアプリケーションの パフォーマンス向上のコツ 実践編
Masahiro Nagano
 
PDF
Webアプリケーションの パフォーマンス向上のコツ 概要編
Masahiro Nagano
 
PDF
Webアプリケーションとメモリ
Masahiro Nagano
 
Advanced nginx in mercari - How to handle over 1,200,000 HTTPS Reqs/Min
Masahiro Nagano
 
Rhebok, High Performance Rack Handler / Rubykaigi 2015
Masahiro Nagano
 
Big Master Data PHP BLT #1
Masahiro Nagano
 
Stream processing in Mercari - Devsumi 2015 autumn LT
Masahiro Nagano
 
メルカリのデータベース戦略 / PHPとMySQLの怖い話 MyNA会2015年8月
Masahiro Nagano
 
ISUCONの勝ち方 YAPC::Asia Tokyo 2015
Masahiro Nagano
 
Norikraで作るPHPの例外検知システム YAPC::Asia Tokyo 2015 LT
Masahiro Nagano
 
メルカリでのNorikraの活用、 Mackerelを添えて
Masahiro Nagano
 
Gazelle & CPAN modules for performance. Shibuya.pm Tech Talk #17 LT
Masahiro Nagano
 
Mackerel & Norikra mackerel meetup #4 LT
Masahiro Nagano
 
ISUCON4 予選問題で(中略)、”my.cnf”に1行だけ足して予選通過ラインを突破するの術
Masahiro Nagano
 
Isucon makers casual talks
Masahiro Nagano
 
blogサービスの全文検索の話 - #groonga を囲む夕べ
Masahiro Nagano
 
Gazelle - Plack Handler for performance freaks #yokohamapm
Masahiro Nagano
 
Dockerで遊んでみよっかー YAPC::Asia Tokyo 2014
Masahiro Nagano
 
Web Framework Benchmarksと Perl の現状報告会 YAPC::Asia Tokyo 2014 LT
Masahiro Nagano
 
ISUCONで学ぶ Webアプリケーションのパフォーマンス向上のコツ 実践編 完全版
Masahiro Nagano
 
Webアプリケーションの パフォーマンス向上のコツ 実践編
Masahiro Nagano
 
Webアプリケーションの パフォーマンス向上のコツ 概要編
Masahiro Nagano
 
Webアプリケーションとメモリ
Masahiro Nagano
 
Ad

Recently uploaded (20)

PDF
Leadership Advisory & Branding powered by MECE, SCQA & 3P framework.pdf
Vipin Srivastava
 
PPTX
Revolutionizing Shopping: Voice Commerce in Retail and eCommerce
RUPAL AGARWAL
 
PDF
Fire Sprinklers Market Trends & Growth 2034
Preeti Jha
 
PDF
Easypromo AI Review: Revolutionizing Digital Promotions with Artificial Intel...
Larry888358
 
PDF
Buy Boys Long Sleeve T-shirts at Port 213
Port 213
 
PDF
Factors Influencing Demand For Plumbers In Toronto GTA:
Homestars
 
PDF
15 Essential Cloud Podcasts Every Tech Professional Should Know in 2025
Amnic
 
PDF
How to Make Your Pre Seed Startup Grant Fundable
ideatoipo
 
PDF
Redefining Punjab’s Growth Story_ Mohit Bansal and the Human-Centric Vision o...
Mohit Bansal GMI
 
PPTX
Why-Your-BPO-Startup-Must-Track-Attrition-from-Day-One.pptx.pptx
Orage technologies
 
PDF
Kirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip
 
PDF
LeadershipHQ Overview Flyer 2025-2026 Global
Sonia McDonald
 
PDF
MSOL's corporate profile materials_______
Management Soluions co.,ltd.
 
PPTX
IP Leaks Can Derail Years Of Innovation In Seconds
Home
 
PDF
Saint Johns Pitch Factory July 8 2025 No 1.
anniegrogan1
 
PDF
Importance of Timely Renewal of Legal Entity Identifiers.pdf
MNS Credit Management Group Pvt. Ltd.
 
PDF
Connecting Startups to Strategic Global VC Opportunities.pdf
Google
 
PDF
Concept Topology in Architectural Build Addendum.pdf
Brij Consulting, LLC
 
PDF
Explore Unique Wash Basin Designs: Black, Standing & Colored Options
Mozio
 
PDF
Azumah Resources reaffirms commitment to Ghana amid dispute with Engineers & ...
Kweku Zurek
 
Leadership Advisory & Branding powered by MECE, SCQA & 3P framework.pdf
Vipin Srivastava
 
Revolutionizing Shopping: Voice Commerce in Retail and eCommerce
RUPAL AGARWAL
 
Fire Sprinklers Market Trends & Growth 2034
Preeti Jha
 
Easypromo AI Review: Revolutionizing Digital Promotions with Artificial Intel...
Larry888358
 
Buy Boys Long Sleeve T-shirts at Port 213
Port 213
 
Factors Influencing Demand For Plumbers In Toronto GTA:
Homestars
 
15 Essential Cloud Podcasts Every Tech Professional Should Know in 2025
Amnic
 
How to Make Your Pre Seed Startup Grant Fundable
ideatoipo
 
Redefining Punjab’s Growth Story_ Mohit Bansal and the Human-Centric Vision o...
Mohit Bansal GMI
 
Why-Your-BPO-Startup-Must-Track-Attrition-from-Day-One.pptx.pptx
Orage technologies
 
Kirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip
 
LeadershipHQ Overview Flyer 2025-2026 Global
Sonia McDonald
 
MSOL's corporate profile materials_______
Management Soluions co.,ltd.
 
IP Leaks Can Derail Years Of Innovation In Seconds
Home
 
Saint Johns Pitch Factory July 8 2025 No 1.
anniegrogan1
 
Importance of Timely Renewal of Legal Entity Identifiers.pdf
MNS Credit Management Group Pvt. Ltd.
 
Connecting Startups to Strategic Global VC Opportunities.pdf
Google
 
Concept Topology in Architectural Build Addendum.pdf
Brij Consulting, LLC
 
Explore Unique Wash Basin Designs: Black, Standing & Colored Options
Mozio
 
Azumah Resources reaffirms commitment to Ghana amid dispute with Engineers & ...
Kweku Zurek
 

Mysql 4.0 casual

  • 11. $ grep innodb_buffer_pool /etc/my.cnf innodb_buffer_pool_size = 10G $ echo "show variables like 'innodb_buffer_pool_size'" | mysql -t +-------------------------+------------+ | Variable_name           | Value      | +-------------------------+------------+ | innodb_buffer_pool_size | 2147483648 | = 2GB +-------------------------+------------+
  • 14. CREATE TABLE hoge ( id int unsigned NOT NULL auto_increment primary key, level tinyint NOT NULL default '1', KEY level (level) ) Engine=InnoDB; mysql> explain select id from hoge where level=2 order by id; +----+-------------+-------+------+-------+--------------------------+ | id | select_type | table | type | key | Extra | +----+-------------+-------+------+-------+--------------------------+ | 1 | SIMPLE | hoge | ref | level | Using where; Using index | +----+-------------+-------+------+-------+--------------------------+
  • 15. mysql> select version(); | 4.0.27-log | mysql> explain select id from hoge where level=2 order by id; +-------+------+-------+------------------------------------------+ | table | type | key | Extra | +-------+------+-------+------------------------------------------+ | hoge | ref | level | Using where; Using index; Using filesort | +-------+------+-------+------------------------------------------+ 1 row in set (0.00 sec)
  • 21. my $sth = $dbh->prepare(“SELECT GET_LOCK(?,300)”); $sth->execute(q!injection”!) #110214 15:50:09 server id 53721 log_pos 803 Query thread_id=6 exec_time=0 error_code=0 SET TIMESTAMP=1297666209; DO RELEASE_LOCK("injection””)

Editor's Notes