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 https://www.slideshare.net/myxplain/mysql-indexing-best-practices-for-mysql

> 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


Subject
Views
Written By
Posted
6282
May 22, 2017 09:32AM
1927
May 22, 2017 11:24AM
1411
May 22, 2017 11:38AM
1180
May 23, 2017 10:43AM
1187
May 23, 2017 11:10AM
1171
May 23, 2017 02:24PM
1243
May 23, 2017 04:05PM
Re: Select count very slow
1374
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.