I certainly agree that we shouldn't display deleted items, but stat()ing each file in the result set is a bit scary to me. It is however, by far, the easiest solution right now.
The Real Fix (TM) is to fix bug #489194 and make Zeitgeist respect the StorageState parameter in the query.
Before I merge something like Seif's branch I'd like to consider if we can lighted the IO load a bit somehow... Any ideas? Perhaps some clever caching + monitoring parent dirs of result uris...
I certainly agree that we shouldn't display deleted items, but stat()ing each file in the result set is a bit scary to me. It is however, by far, the easiest solution right now.
The Real Fix (TM) is to fix bug #489194 and make Zeitgeist respect the StorageState parameter in the query.
Before I merge something like Seif's branch I'd like to consider if we can lighted the IO load a bit somehow... Any ideas? Perhaps some clever caching + monitoring parent dirs of result uris...