MySQL Forums
Forum List  »  InnoDB

Re: partitioning of a table
Posted by: Rick James
Date: May 06, 2014 06:02PM

KEY `INdexartikelpl` (`A_PL`,`A_nr`),
KEY `Indexpl` (`A_PL`),
Redundant; DROP the second.

KEY `key_groothandel_idx` (`A_GH`),
KEY `Groothandel_idx` (`A_GH`),
Redundant; DROP one of them.

More indexes slows down INSERTs.
FOREIGN KEYs slow down INSERTs significantly.

> query_cache_size 74752
That is so small as to be virtually useless. Suggest 0 and OFF.
To see whether the QC is being efficient, let's see
SHOW GLOBAL STATUS LIKE 'Qc%';

> Using index
Good.

> Key_len = 5
This probably refers to a key that is NULLable. Explicitly declare fields NOT NULL except when you need to use NULL.

> varchar(255)
Use realistic limits.

> int(3)
The "3" means nothing; an INT always takes 4 bytes. Perhaps you meant SMALLINT UNSIGNED?

Use UNSIGNED where appropriate.

> Insert are stand alone actions each at a time
SHOW VARIABLES LIKE 'autocommit';

> so to speed up te table
Is the goal to speed up INSERTs?
Or to speed up SELECTs?

CONSTRAINT `Groothandel` FOREIGN KEY (`A_GH`) REFERENCES `tblgroothandel` (`ghid`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `key_groothandel` FOREIGN KEY (`A_GH`) REFERENCES `tblgroothandel` (`ghid`) ON DELETE NO ACTION ON UPDATE NO ACTION
Redundant??

Can we see the SELECT that goes with the EXPLAIN?

Options: ReplyQuote


Subject
Views
Written By
Posted
1882
May 01, 2014 05:25AM
942
May 02, 2014 10:51AM
997
May 05, 2014 07:31AM
929
May 05, 2014 07:54AM
Re: partitioning of a table
977
May 06, 2014 06:02PM
810
May 07, 2014 03:20AM
850
May 08, 2014 08:50AM
969
June 02, 2014 02:09AM
916
June 02, 2014 09:41PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.