Hi.
I am on llblgen v3.5 Final, Sql Server 2008 R2.
I have the following code that builds a free-text predicate expression:
var fullTextFields = new ArrayList { EnquiryFields.ExternalReference, EnquiryFields.Description, EnquiryFields.Subject };
FilterToUse.PredicateExpression.Add(new FieldFullTextSearchPredicate(fullTextFields, FullTextSearchOperator.Freetext, SearchText.Text) | new FieldFullTextSearchPredicate(EnquiryActionFields.Message, null, FullTextSearchOperator.Freetext, SearchText.Text));
FilterToUse.Relations.Add(EnquiryEntity.Relations.EnquiryActionEntityUsingEnquiryId, JoinHint.Left);
It takes 12-13 seconds to execute.
If I remove the EnquiryActionFields.Message field and the join to EnquiryActionEntity, it executes in a few ms.
EnquiryActionFields only contains 2000 records on the test machine.
Any ideas how to speed things up without creating a view for the two tables?
Thanks