All Questions
Postgresql medium

How can an administrator create an index on a large production table without locking out concurrent insert and update operations?

  1. A Use the `INDEX BACKGROUND` flag to offload the build to an idle maintenance worker thread.
  2. B Use the `INDEX ONLINE` flag to allow the table to re-order itself during live application traffic.
  3. C Use the `CONCURRENTLY` keyword to build the index without acquiring an 'Access Exclusive' lock.
  4. D Use the `DEFERRED` keyword to delay the physical index creation until the next cluster reboot.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions