I am trying to update a table using psycopg2 library since I need to bulk update that column. When I run
tr_cursor.execute("UPDATE <table-name> set <column-name> = 'KR' where id = 21;")
The command runs in < 1 second but it DOES NOT update the table. When I run the same command in datagrip it takes more than 4minutes to run (I stopped it at 4min, did NOT let it run fully. Just wanted to check the time required). What am I doing wrong here? Please ask for any further info that is required