I have a MySQL(innodb) table 'items' with the following characteristics
- Large number of rows, and keeps on increasing.
- Large number of columns of various data-types including 'text';
- primary key 'item_id' is present.
There are additional requirements as follows:
- Need to query items based on their status
- Need to update status
The above two operations happen quite frequently.
Given the above scenario I have two questions
- Would making a separate table with two columns namely
item_id
andstatus
withitem_id
as primary key provide increased performance? - If the above is true, how am I going to tackle querying item_ids based on status?
I am inexperienced in handling databases. I hope you will bear with me :)