Add a indexesdir option to hold the indexes directory #32099

issue User087 openend this issue on March 20, 2025
  1. User087 commented at 5:56 am on March 20, 2025: none

    Please describe the feature you’d like to see added.

    An indexesdir option (or whatever you want to call it) to specify an alternative directory to datadir to hold the ‘indexes’ subdirectory, like the blocksdir option for the ‘blocks’ subdirectory.

    Like the ‘blocks’ directory, the ‘indexes’ directory can grow to a significant size (perhaps not as large as ‘blocks’ but still significantly large), making it desirable to e.g. offload it onto a separate HDD while keeping the rest of datadir on an SSD for other benefits (like fast access to the chainstate directory). This option is already available for the ‘blocks’ directory through the blocksdir option, so there’s adequate precedent to do the same for ‘indexes’.

    Describe the solution you’d like

    Described above

    Describe any alternatives you’ve considered

    Splitting datadir using symlinks etc

    Please leave any additional context

    No response

  2. User087 added the label Feature on Mar 20, 2025
  3. User087 commented at 6:02 am on March 21, 2025: none

    Do you have txindex enabled or disabled?

    Enabled - the context of the question is that I think this would be useful for anyone running with txindex enabled; I’m not assuming indexesdir would be necessary if it’s kept disabled (just as someone with a sufficiently pruned blockchain doesn’t need to worry about blocksdir either).

  4. mzumsande commented at 5:22 pm on March 24, 2025: contributor
    With the current size of indexes this looks like a reasonable option to me - even if symlinks work too.

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-03-28 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me