Network shares and slow storage

A network share is slower than a local disk. It can disappear without warning, and it is often someone else’s. This guide says where to save the project and how Ingence treats links. It also says what a scan reads on a share, and what still works when the share is gone.

Save the project on your own disk

Ingence writes to the project in every scan. A local disk is faster, and it is there when the share is not. Keep the project outside the data folder (Privacy and your data says why).

Look before a long scan

ingence index -p PROJECT --dry-run --seconds 60

This walks the share for 60 seconds, and reports how fast it goes and what it holds. It doesn’t write anything. If the walk is slow, you know before you wait for a whole scan.

You can stop a scan

You can stop ingence index at any moment, for example on a slow share. A stopped scan doesn’t add anything to the project, and the previous scan stays current. So the project stays as it was.

Drives mounted inside the data folder

By default the walk stays on one disk (scan.one_file_system). It does not go into another drive or share that is mounted inside the data folder.

What a scan reads on a share

A hash is a fingerprint made by reading a file’s bytes. Ingence uses hashes to prove that two files are identical. Reading bytes across a network is slow, and it slows the share for everyone else. These are the choices, from the least read to the most.

  • init --depth metadata (Quick) doesn’t open or hash anything. Ingence asks the share only for names, sizes and dates. Choose it for a share that is not yours (Read someone else’s folder).

  • The default (Standard depth, hash mode need) opens common formats, within limits. It hashes only what comparing files needs. It reads a small sample of every file whose size another file shares. Where two samples match, it reads both files whole, to prove them identical. It doesn’t read a file for this unless another file has the same size. This happens on a share too, because finding copies is what a scan of a share is for.

  • Deep reads more content. It takes larger samples of each file, and it stops after 4 hours unless you set another limit (extraction.total_seconds). It hashes the same way as the default. Choose Deep with care, and do not use it on a share that other people depend on.

Ingence hashes every file only if you choose a mode that does: hash.mode set to quick, full or adaptive. Setting hash.need_from to depth does the same. By default, Ingence doesn’t hash every file. With one of these modes, a Standard scan leaves a share’s files unhashed, and a Deep scan hashes them. need is never held back this way.

One setting in the project’s settings.yaml, hash.skip_remote_filesystems, changes this. What you set there holds at every depth. To stop every hash on a share, need’s as well:

hash:
  skip_remote_filesystems: always

A scan still opens files on the share, to read headers, text and tables. Use init --depth metadata when Ingence shouldn’t open any file at all.

Setting it to false hashes shares at every depth. Under the default need mode, that doesn’t change anything, because need already hashes on a share. It matters only if you chose a mode that hashes every file: then Standard hashes a share as Deep does. Left unset, the depth decides, as above.

When the share is away

Listing files and reading contents need the data folder. Each refuses a folder it cannot reach, before it writes anything. Everything else needs only the project, so it works with the drive unplugged or the share unmounted:

  • reading the saved names again (ingence index --rebind);

  • ingence infer;

  • answering checks and applying the answers;

  • the Dashboard’s sections and Re-run.

The Dashboard reads the data folder itself in two cases only. One is the first scan, started from its landing page. The other is the check behind the reorganization planner in the Explorer (in Advanced). That check doesn’t open any file, and it answers “unknown” when the share is away. Privacy and your data says what it asks. The last finished scan can always be read.

Folders kept in step with the cloud

A folder kept in step with OneDrive, Dropbox, iCloud or a similar service may hold cloud-only files. Opening such a file can make the sync program download it. Listing files doesn’t open any file, and reading contents does. Use init --depth metadata until you have checked what your sync program does.