ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.83k stars 1.36k forks source link

Feature request: `--reindex` flag #3434

Open so7ow opened 6 months ago

so7ow commented 6 months ago

Allow users to specify this flag that will safely rename/archive/delete the default index.redb file and start again from scratch. 🙏🏻

JoeyKhd commented 6 months ago

Prettiest would be if it would be a command that then restarts the server after

so7ow commented 6 months ago

Prettiest would be if it would be a command that then restarts the server after

Not sure I follow what you're looking for here. As I imagine it, running the --reindex flag would archive the old/out-of-date index.redb file and then begin a normal indexing run. Why does the server need to be restarted?

raphjaph commented 6 months ago

I think this is a great feature!

Maybe just a simple subcommand like ord reindex, that moves the existing index.redb to index.redb.bak.

so7ow commented 6 months ago

I think this is a great feature!

Maybe just a simple subcommand like ord reindex, that moves the existing index.redb to index.redb.bak.

I'll take it!

lalotrage commented 6 months ago

Awesome request, looking forward to the update.