[owncloud-devel] Mapping file ids to FileInfo/storage

Vincent Petry pvince81 at owncloud.com
Fri Nov 28 12:01:24 GMT 2014


Thanks Jörn.

I decided to use another approach and add a method "searchByTags" on the
storages so we get a chance to use actual DB JOINS for the search:
https://github.com/owncloud/core/commit/f803fbbb1cf691b2ead0fb2ee1d392101bcd3127#diff-fb4e3a03c02988e8dde2af0b55f7b96fR518

Cheers,

Vincent

On 11/27/2014 09:09 PM, Jörn Friedrich Dreyer wrote:
> On 27.11.2014 18:56, Vincent Petry wrote:
>> Hello,
>>
>> I'm working on the tags/favorites app here
>> https://github.com/owncloud/metadata/pull/2 and was wondering how I can
>> efficiently map file ids to FileInfo.
>>
>> I noticed that the search_lucene app also only indexes file ids, but yet
>> it returns the correct file paths, even for shared folders.
>>
>> Is there an efficient way to resolve FileInfo from fileid ? (I didn't
>> find that part in the search_lucene app)
> https://github.com/owncloud/search_lucene/blob/master/lucene/indexer.php#L106
> and then
> https://github.com/owncloud/search_lucene/blob/master/search/luceneresult.php#L53
>
> the problem is that \OC::$server->getUserFolder(); is slow. As in
> https://github.com/owncloud/core/pull/12099
>
> Maybe robin knows of a better way...
>> This here
>> https://github.com/owncloud/metadata/commit/3b864a1f2ab7d2e38bb1a485abc2f29310d711d3#diff-19747901543244a55807cbd25aac2737R71
>> is definitely the WRONG way.
>>
>> Thanks,
>>
>> Vincent
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
>>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20141128/43daaa79/attachment.sig>


More information about the Devel mailing list