Re: Patch to add search capability
Chuck Hagenbuch <[email protected]>
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
Quoting "Heath S. Hendrickson" <[email protected]>: > Any suggestions to try out on this? I'm just worried about performance > impacts as it takes a fair amount of time to do a CONTAINS search on my > small install... I don't have even any rough numbers, but I could get > some if it would make a difference. Sorry, you lost me. Are you just worried about adding another check, and decreasing the performance because of that? Or is the CONTAINS searching related to permissions somehow? I think what I'd do is after: $gallery = $ansel_shares->getShare($galleryName); ... just add a $gallery->hasPermission(Auth::getAuth(), PERMS_READ)); check, and continue to the next result if not. In fact, I'll try adding this now, since it'd make sense to add a few other things to help with making sure the count of returned images is right. This should be reasonably well cached by the various backends, and if not, we can optimize it in there somewhere. -chuck -- "Regard my poor demoralized mule!" - Juan Valdez -- ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]