Help

Design notes

Why indexing takes time

The first scan of a large folder or cloud account is the slow part of using FileFlock. This article explains the design behind that, so you can tell a healthy wait from a stuck one. It gives no timings, because none have been measured on a released app.

Updated

FileFlock is in development. This article describes intended mechanics, not measured behaviour. We give no time or traffic figures; any estimate has to come from your own files, accounts and connection.

Read counters

An index is built in stages, and the slow part changes from stage to stage. FileFlock is designed to show a counter for each one, so you can see which stage is running instead of one vague progress bar.

  1. Metadata. The app lists what exists in each place: names, paths, sizes, dates, types. Nothing is opened yet. This is the stage that lets name search work early.
  2. Content. For the formats and folders you allow, it reads the text inside documents, PDFs and similar files, and splits it into passages that answers can cite by page or section.
  3. OCR. For scans and photos with no text layer, optional OCR reads the words on the image. It is off by default and is turned on for folders you pick.
Indexing: Dropbox, Receipts and Projects
Scan in progressYou can search by name now
Pause
Metadata, files listed so far / files seen so far
Content, files read / files waiting, with skipped files and the reason
OCR, pages done / pages queued (only in folders where it is on)
Narrow scopeKeep going

Design sketch of the three counters. Layout and wording may differ in the final app.

Counters also separate two things that look alike from outside: a file the app has not reached, and a file it reached but could not read. Large, encrypted or damaged files are meant to be skipped with a stated reason and a way to retry, rather than silently dropped. How a place becomes searchable differs by source, so the pages for Google Drive, OneDrive, Dropbox and local folders each list their own limits.

Bottlenecks

Each stage waits on a different thing, and only one is ever the slowest at a time.

Listing waits on the service

Cloud services limit how fast an app may ask questions. FileFlock is designed to keep a request budget per account, back off when a service answers "too many requests", obey the wait time the service gives, and add random delay between retries so it does not hammer. When a quota runs out the task pauses rather than failing. The number of requests is roughly the number of items divided by how many items one reply can hold, plus extra calls for folders, permissions and retries. Many small files in a few folders and the same count spread over a great many folders can need very different numbers of calls. S3 and WebDAV differ again, as described on the S3 and WebDAV pages.

Content waits on bytes

Reading text from a cloud file means fetching it, which uses your downloads. Files that exist online only, shown as stubs, are not fetched just to check what they are. Heavy readers run in separate, time-limited processes so one bad file cannot stall the rest. If you want to size it for your own library, the traffic measurement article gives the method and the formulas, not a number.

OCR waits on pages

OCR works page by page on your own computer and is usually the slowest stage per file, which is one reason it is opt-in. It runs only on pages that have no text, or on pages you point at.

There is also the model. Question answering and the optional semantic index use your own model, local or a cloud one with your key. That has nothing to do with the scan above, and asking a question and opening the cited passage covers it.

Resume

A first full scan reads everything once. After that, the design switches to increments. Where the service offers a change feed, such as Drive changes, Graph delta or Dropbox cursors, FileFlock follows it and only touches what changed. Local folders use file-system events. A NAS or WebDAV server without a change feed is relisted on a schedule, within bounds you set. If a service's marker for "where I left off" expires, only that part is scanned again. Repeated events are harmless, and a moved file keeps its identity instead of looking new.

The queue of work is kept in a local database. If you close the lid or shut down, tasks pause, and on return the app re-checks each item's current state before continuing, so it never acts on a stale picture. Items are marked as gone only after a full pass of a place has completed, so a half-finished scan cannot make files vanish from search.

When a scan is taking more than you want, you have levers:

  • Pause it and carry on later; nothing is lost.
  • Narrow it to a folder, a file type or a date range, using the scope view described on search across your file locations.
  • Index names only for a big archive and read text just for the folders you use.
  • Leave OCR off except where you need scans found.

The same ideas apply to duplicates and space reports, which need a finished listing; see which copies are taking up space. Two walk-throughs that depend on a finished scan are finding a receipt and finding the approved version for a client. For other topics, go back to the help center, and for how to undo a change, read recover a file after a change. NAS users can read connect a WebDAV folder.

Common questions

Can I search while indexing is still running?

That is the design. File names are listed first, so name search works early; text search follows as content is read. The search page explains how results are filtered.

Will my computer or internet be tied up?

The plan includes limits you can set for the work, a pause button, and a preview of the scope before a large scan starts. Cloud reads use your own connection, which is why it matters. See measuring the traffic of a cloud index.

Does indexing upload my files anywhere?

No. Indexing is designed to run on your computer and keep the index on your disk. There is no default route for index data to leave it. See where your files and prompts go.

Why is a file listed but not searchable by its text?

Its text may not have been read yet, or it is a scan without a text layer that needs OCR, which is off by default. Work through the checks in the help center.

Launch notice

Be first to try FileFlock.

FileFlock is in development for Windows, Mac and Linux. Leave an email and we will write once, when it is ready to download.

Your computer
Where your files live
Mostly for

One email at launch, plus a reply if you ask a question. No newsletter. See the privacy policy.