EDMOND KEMOKAI wrote:
I'll probably end doing that, I understand apache is better for serving
static content. However the problem isn't where user data is stored, my user
data is stored in a database. Basically my app is similar to a dating
site(it is not  a dating site) where a user's profile doesn't chnage
regularly so there is no reason to use jsp for accessing such a page,
secondly, I am using lucene which can't search jsp directly. I'll eventually
install apache and use it to access html.
Why do you insist on generating static content? Write one generic 'profile.jsp', fetch user's data from a database (you already has one) and that's it. Have you measured that accessing db _really_ slows down your system? If not, so don't waste your time with unneeded optimisations.

Speaking about Lucene: it's a waste of its power to index html files generated from a database. Index text data you insert into database, not the generated files.

--
Mikolaj Rydzewski      <[EMAIL PROTECTED]>        http://ceti.pl/~miki/
                   PGP KeyID: 8b12ab02
There are three kinds of people: men, women and unix.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to