examerioLogin
← Fullstack with Vue.jsQuestion 46 of 62

What does select_for_update() do in Django ORM?

📘 Explanation

select_for_update() locks the selected rows at the database level for the duration of a transaction, so other transactions must wait before modifying them. The wrong answers describe unrelated concepts like permanent read-only marking, in-memory caching, or optimistic locking with version counters, none of which is what this method does.

Related questions

← PreviousNo login needed