views:

37

answers:

2

How can we enhance our serach performance in a large application that works with NHibernate?

+3  A: 

This is a rather general question. It always depends on what you search in what data structure.

So I can only give you general advises:

  • Use indexes
  • optimize the data structure, for instance by avoiding joins paths and avoid conditions
  • optimize HQL
  • use query batches
  • use select new
  • in very special cases, use native sql or views
Stefan Steinegger
A: 

What about using Full-Text Search or Lucene.Net?

Giorgi