Page MenuHomePhabricator

More efficient batch lookups in foreign repos
Open, LowPublic

Description

We need to find a way to do more efficient batch requests in foreign repos. I've got an idea for implementation in the ForeignAPIRepo, so assigning to self.


Version: 1.14.x
Severity: enhancement

Details

Reference
bz15690

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:20 PM
bzimport set Reference to bz15690.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

Something like

class FileBatch {
function addFile( ... ) { ... }
function fetchAll( ... ) { ... }
}

Somewhere in the parser addFile() should be called so that the renderer can call fetchAll().

With r51673, we can now do batch existence checks. Still not ideal.

Mass component change for merge of "File/Repo" and "Images and Files"

Bryan, if you want, feel free to take this over. Chad isn't going to finish it.-