What is meant by the term "dirty object"?

Shimmy Weitzhandler picture Shimmy Weitzhandler · Nov 17, 2009 · Viewed 14.1k times · Source

I see the term "dirty" or "dirty objects" a lot in programming.
What does this mean?

Answer

Stefano Borini picture Stefano Borini · Nov 17, 2009

A dirty object is an object that has changed in its content, but this content has not been synchronized back into the database/disk. It's a typical situation of desynchronization between a cache and a storage.