Hi Arjan,
There are some fixes in trunk of the java adapter to address this issue.
I also added "negative caching" so it caches the 404's as well and
doesn't have to go to the repository each time to check for the
document. At the moment though, no release of the java adapter is
planned yet. I guess it will be released together with a new version of
the Hippo Site Toolkit.
For the moment your solution should work fine though. Searches should be
pretty fast and don't get much slower when the number of documents increase.
Regards,
Bart
Arjan Duijs wrote:
Hello,
We have created a JSP with a "related items" field based on a
documentlistpreview (search CMS select/use through clipboard..)
When some one deletes an article that is used in this field we get a
nullpointerexception since it tries to retrieve a non existing document.
Apparently there's no check whether a document was linked in such a
field (only for internal links?) when deleting it.
We have created a workaround that whenever such a field is displayed it
queries the DB for every related item in that list to see whether it
exists or not (doesn't display if not..)
But with at least 2 of these kind of fields on each page and (soon)
thousands of articles to search through I can imagine this is going to
be very server heavy.
Any of you have a better solution/idea for this?
Thanks in advance
Arjan
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
--
Hippo B.V. - Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466
Hippo USA Inc. - San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com - [EMAIL PROTECTED]
-----------------------------------------------------------------
********************************************
Hippocms-dev: Hippo CMS development public mailinglist