MySQL Forums
Forum List  »  InnoDB

Re: Select count very slow
Posted by: Peter Brawley
Date: May 23, 2017 08:04PM

> do indexes pose risks on performances?

They improve query performance where they can be used. They can slow down Inserts & Updates.

> could it be fatal if not uses correctly?

?! I never heard of anything or anybody dying from an index.

> how could I know If I do wrong or not on my index add choice?

Much to read, eg

> should I add more indexes depending on other queries I do in record table?

If there are queries on the table that are underperforming, probably.

> how do you find my record table structure and volume of data? is it normal?

> `id` bigint

Really, you expect 9,223,372,036,854,775,807 rows? Int unsigned would give you 4.3 billion, wouldn't that be enough?

> `details` longtext,

You need 4.3 billion text bytes per row?

Options: ReplyQuote

Written By
May 22, 2017 09:32AM
May 22, 2017 11:24AM
May 22, 2017 11:38AM
May 23, 2017 10:43AM
May 23, 2017 11:10AM
May 23, 2017 02:24PM
May 23, 2017 04:05PM
Re: Select count very slow
May 23, 2017 08:04PM

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.