Ok, in that case pausing indexing on battery isn't working for me. I can create files on battery and they appear in tracker-search instantly.
There's no need for a preference here. The desired behaviour is that tracker not crawl filesystems when on battery. Indexing newly created or modified files is fine - the file is either in cache or the disk is already spun up, and the instantaneous CPU load is small. There should never be a situation where creating a new file does not immediately add it to the index.
Ok, in that case pausing indexing on battery isn't working for me. I can create files on battery and they appear in tracker-search instantly.
There's no need for a preference here. The desired behaviour is that tracker not crawl filesystems when on battery. Indexing newly created or modified files is fine - the file is either in cache or the disk is already spun up, and the instantaneous CPU load is small. There should never be a situation where creating a new file does not immediately add it to the index.