what are Text index, Database index ? How to create the both? difference?

mallikharjunasw
Tera Contributor

what are Text index, Database index ? How to create the both? difference?

2 REPLIES 2

Monali Patil
Kilo Guru

   Hi,

Text Index

Administrators can enable text indexing on a table to allow users to search for string values from table records.

 
  1. Navigate to System Definition > Dictionary.
  2. Click the table name to open the dictionary entry.

    A table in the System Dictionary is a record that has a Table name but no Column name.

    find_real_file.png

    3.Select the Text index check box to enable text indexing for text fields on the table.

    find_real_file.png

     

    4.Click Update.

    5.Click Generate Text Index.

    Database indexing

    Indexing is one of the most important database features and must be implemented properly where needed to improve response time. Just like in other database-based applications, creating an index must be dealt with carefully, and only the fields that will be looked up often must be indexed. Indexing will not just improve the response time; it also greatly improves the database performance and can help optimize slow queries:

    1. In the ServiceNow platform, to create a database index, we can use the System Definition | Tables module. Let's create an index for the Caller field in the Booking Request table.
    2. In the System Definition | Tables module, open the Booking Request table by clicking on the info icon next to the record:

    find_real_file.png

     
  1. It will bring you up to the details page of the Booking Request table's configuration. Navigate to the bottom of the page and click on the New button in the Database Indexes related list, as shown in the following screenshot:

find_real_file.png

 

If my response is worthy please mark as correct and helpful

 

Regards,

Monali Patil

Developer

 

Text Index: allow users to search for string values from table records mean, can you please give an example that how search works? as any table can have different type of data type field.

Database Index: In the above example, for active index, 3 fields given , how indexing will be different for normal search, what is the order of execution , Can you please elaborate?