{"id":178,"date":"2024-06-25T01:59:42","date_gmt":"2024-06-25T01:59:42","guid":{"rendered":"https:\/\/www.kwwd.co.uk\/blog\/?p=178"},"modified":"2024-06-25T01:59:42","modified_gmt":"2024-06-25T01:59:42","slug":"add-an-index-to-a-mysql-table","status":"publish","type":"post","link":"https:\/\/www.kwwd.co.uk\/blog\/add-an-index-to-a-mysql-table\/","title":{"rendered":"Add an Index to a MySQL Table"},"content":{"rendered":"<p>An index speeds up the serving of data by allowing you to quickly find data in a table without having to go row by row<\/p>\n<p>An index is much like the index in a book in that it allows you to look up a specific value and jump straight to that point rather than having to check every single page to see if what you&#8217;re looking for it there.<\/p>\n<pre><code class=\"language-sql\">CREATE INDEX YourIndexName_index_0 ON YourTable (YourColumn);<\/code><\/pre>\n<p><a href=\"https:\/\/www.mysqltutorial.org\/mysql-index\/\" target=\"_blank\" rel=\"noopener\">More information here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An index speeds up the serving of data by allowing you to quickly find data in a table without having to go row by row [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[31,24],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-database","tag-mysql"],"_links":{"self":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":0,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwwd.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}