Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is meant by the term "dirty object"?

Tags:

dirty-data

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

like image 458
Shimmy Weitzhandler Avatar asked Nov 17 '09 00:11

Shimmy Weitzhandler


People also ask

What does dirty mean in computer science?

A dirty bit or modified bit is a bit that is associated with a block of computer memory and indicates whether the corresponding block of memory has been modified. The dirty bit is set when the processor writes to (modifies) this memory.

What does dirty mean in coding?

Noun. dirty code (uncountable) (computing, derogatory) Software code that has had many editors with conflicting styles, making it nearly impossible to maintain. That software has dirty code and we should not use it.

What does a dirty flag mean?

Dirty flagging is playing from a losing or drawing position and then winning because your opponent's time runs out - usually by throwing in extraneous or sacrificial checks to force your opponent's time to run low.


1 Answers

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.

like image 145
Stefano Borini Avatar answered Sep 20 '22 06:09

Stefano Borini