postgresql - updating cloumn with Index in postgres -


i updating on ~8m rows in table. column updating client_id , table has composite index on user_id , client_id. going affect indexing in way ...?

doing large update slower indexes, since indexes have updated also. might issue, or not. depends on many things.

after update indexes should, reindex might in order make space usage better. if 8m rows majority of table, vacuum full may in order reduce disk space usage, if table heavily updated time, might not worth it.

so if want, can remove index, update , recreate index, impossible if faster doing update index in place.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -