start = System.currentTimeMillis();
crawlDbTool.update(crawlDb, segs, true, true); // update crawldb
delta = System.currentTimeMillis() - start;
res.addTiming("update", i + "", delta);
start = System.currentTimeMillis();
linkDbTool.invert(linkDb, segs, true, true, false); // invert links
delta = System.currentTimeMillis() - start;
res.addTiming("invert", i + "", delta);
// delete data
if (delete) {
for (Path p : segs) {