Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 77259

In relational database design, a primary key can uniquely identify each row in a table. A primary key comprises a single column or a set of columns.

0 votes
1 answer
328 views

InnoDB: SELECT COUNT(*) using primary key 25 times slower on Windows

MySql 5.6, InnoDB. I have a table with 8 million records. It has an integer primary key, and a unique index u1 CHAR(40). It also has a few small fields and a VARCHAR(1000). SELECT COUNT(*) FROM my_ta …
Per Lindberg's user avatar
2 votes

InnoDB: SELECT COUNT(*) using primary key 25 times slower on Windows

It turns out that the difference was the size of innodb_buffer_pool_size. On the Win box it was too low. It appears that, if you need the primary key, all the records (8 million times 1000 chars) nee …
Per Lindberg's user avatar