phpMyAdmin has a number of index management options, which we will cover in this section. Single-Field Indexes We have already seen how the Structure panel offers a quick way to create an index on a single field, thanks to some quick links like Primary, Index, and Unique. Under the field list, there is a section of the interface used to manage indexes:
This section has links to edit or delete every index. Here, the Field part lists only one field per index, and we can see that the whole field participates in the index. We will now add an index on the title. However, we want to restrict the length of this index to reduce the space used by the on-disk index structure. The Create an index on 1 column option is appropriate, so we click Go. In the next screen, we specify the index details as shown in the following screen:
Here is how to fill this panel:
After saving this panel, we can confirm from the following screenshot that the index is created and does not cover the whole length of the title field:
blog comments powered by Disqus |