I am developing a "Local business search" website, just like
OLX, JUSTDIAL or QUIKR...etc.
Since its a search based site (i.e. read intensive website),
I have to ensure that search data get retrieved quickly and efficiently. That's why I have decided to use INDEXING on tables.
I would like to use INDEXING on "ADVERTISEM ENT" table, because all the search data will be retrieved from this table.
I need some guidance on using indexes.
1. on which columns should I use indexing
2. which type should I use "Clustered/non clustered".
I am aware of the fact that using Indexes is a ticky process and we have to ensure that they are used on proper columns and tables are not over-indexed.
Below are the important tables and their corresponding columns
1. ADVERTISMENT TABLE (Columns mentions as below):
AdvID
CategoryID -- (referenced from category table)
SubCatID -- (referenced from subcategory table)
Adv_PlanID -- (referenced from Adv. plans table)
UserID -- (referenced from Adv. Users table)
Adv_Desc -- (This text will be searched by user)
CreateDate
Adv_Status
Expire_Date
LocationID
StateID
CityID
2. Categories Table
Category_ID
Category _Description
3. Sub Category Table
SubCategory_ID
Category_ID (Referenced from Category table)
SubCatDescripti on
so on...
Thanks In Advance...
OLX, JUSTDIAL or QUIKR...etc.
Since its a search based site (i.e. read intensive website),
I have to ensure that search data get retrieved quickly and efficiently. That's why I have decided to use INDEXING on tables.
I would like to use INDEXING on "ADVERTISEM ENT" table, because all the search data will be retrieved from this table.
I need some guidance on using indexes.
1. on which columns should I use indexing
2. which type should I use "Clustered/non clustered".
I am aware of the fact that using Indexes is a ticky process and we have to ensure that they are used on proper columns and tables are not over-indexed.
Below are the important tables and their corresponding columns
1. ADVERTISMENT TABLE (Columns mentions as below):
AdvID
CategoryID -- (referenced from category table)
SubCatID -- (referenced from subcategory table)
Adv_PlanID -- (referenced from Adv. plans table)
UserID -- (referenced from Adv. Users table)
Adv_Desc -- (This text will be searched by user)
CreateDate
Adv_Status
Expire_Date
LocationID
StateID
CityID
2. Categories Table
Category_ID
Category _Description
3. Sub Category Table
SubCategory_ID
Category_ID (Referenced from Category table)
SubCatDescripti on
so on...
Thanks In Advance...
Comment