Indexing on DB?
Hi people, I haven’t done this before. But are there any downsides of indexing a column on production. Like some query is running very slow, and I figured out that u should put an index on one of the columns. I wouldn’t be here if I had someone experienced to ask from. I’ve a few questions-
- Is it okay to run the query on my sql workbench to add index?
- If something goes wrong what do you people generally do, like taking snapshots or
PITR
- ?
- Is it safe to run the query directly on the db or usually people run it some other way, like via cli on VM?
- I heard about locking and stuff. But the version I’m using says it won’t lock the DB. But still anything I should test before actually you know doing it live?
I’ve no idea what’s the general procedure and what could go wrong. If someone has done it before, Appreciate any sort of advice or pointers. Thanks