Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is better 1 Full-Text Catalog for all tables or 1 per table?

I am new to this full text search thing and cant find an answer to this question, I would like to know your thoughts on the matter.

like image 718
Back UP Avatar asked Jul 16 '14 18:07

Back UP


People also ask

What is a full-text catalog?

A full-text catalog is a logical container for a group of full-text indexes. You have to create a full-text catalog before you can create a full-text index. A full-text catalog is a virtual object that does not belong to any filegroup.

Is it good to have multiple indexes on a table?

Yes you can have too many indexes as they do take extra time to insert and update and delete records, but no more than one is not dangerous, it is a requirement to have a system that performs well.

What is the use of full text search in SQL Server?

Full-text queries perform linguistic searches against text data in full-text indexes by operating on words and phrases based on the rules of a particular language such as English or Japanese. Full-text queries can include simple words and phrases or multiple forms of a word or phrase.

How does a full-text index work?

A full-text index is a special type of index that provides index access for full-text queries against character or binary column data. A full-text index breaks the column into tokens and these tokens make up the index data.


1 Answers

Taken from: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b57a0538-033a-41f1-bdfd-8084680043f2/full-text-catalog-best-practices?forum=sqldatabaseengine

Recommendations from SQL Server 2008 Books Online: We recommend associating tables with the same update characteristics (such as small number of changes versus large number of changes, or tables that change frequently during a particular time of day) together under the same full-text catalog.

By setting up full-text catalog population schedules, full-text indexes stay synchronous with the tables without adversely affecting the resource usage of the database server during periods of high database activity. When you assign a table to a full-text catalog, consider the following guidelines:

  1. Always select the smallest unique index available for your full-text unique key. (A 4-byte, integer-based index is optimal.) This reduces the resources required by Microsoft Search service in the file system significantly. If the primary key is large (over 100 bytes), consider choosing another unique index in the table (or creating another unique index) as the full-text unique key. Otherwise, if the full-text unique key size exceeds the maximum size allowed (900 bytes), full-text population will not be able to proceed.

  2. If you are indexing a table that has millions of rows, assign the table to its own full-text catalog.

  3. Consider the amount of changes occurring in the tables being full-text indexed, as well as the total number of rows. If the total number of rows being changed, together with the numbers of rows in the table present during the last full-text population, represents millions of rows, assign the table to its own full-text catalog.

like image 176
Kritner Avatar answered Nov 09 '22 14:11

Kritner