Questions tagged [dirty-data]
60 questions
42
votes
2 answers
What is meant by the term "dirty object"?
I see the term "dirty" or "dirty objects" a lot in programming.
What does this mean?

Shimmy Weitzhandler
- 101,809
- 122
- 424
- 632
26
votes
4 answers
What does 'dirty-flag' / 'dirty-values' mean?
I see some variables named 'dirty' in some source code at work and some other code. What does it mean? What is a dirty flag?

piotrek
- 1,333
- 4
- 17
- 35
17
votes
1 answer
Rails save method if no changes
I seem to remember reading somewhere that rails won't commit to the database if no attributes have been changed (presumably as part of active record dirty) is this the case? I can't seem to find it and am none the wiser having had a quick look…

j-dexx
- 10,286
- 3
- 23
- 36
15
votes
4 answers
ObjectContext.Refresh()?
How to update ALL the dirty entities from the data store, and reset their changed values to the original store value?
The method ObjectContext.Refresh requires as a parameter the entities to be refreshed.

Shimmy Weitzhandler
- 101,809
- 122
- 424
- 632
11
votes
4 answers
Postgresql warning: "could not flush dirty data: Function not implemented"
I'm trying to create a new database on postgres, by running command:
CREATE DATABASE dbname;
and I face the error:
WARNING: could not flush dirty data: Function not implemented
many times! and finally I get the message
CREATE DATABASE
Can…

Someone
- 163
- 1
- 3
- 13
6
votes
1 answer
Prevent input change from causing form to dirty (Angular 5.2)
Is there a simple way to prevent an input control from dirtying its parent form?
I could do so by building a custom tag that doesn't have a controlValueAccessor, but I was wondering if there is an easier way.
In the middle of one of my forms I have…

Devon Holcombe
- 518
- 1
- 5
- 18
5
votes
1 answer
x86 dirty bit in page table entry
The Intel Architecture manual says when there is first write access against a memory page, the CPU sets the dirty bit of the page table entry. I have questions regarding this issue.
1. The 'dirty bit' in this context is used for guaranteeing the…

daehee
- 5,047
- 7
- 44
- 70
5
votes
1 answer
Checking for any dirty Backbone model data within collection
I have a requirement to "nag" a user about unsaved changes when they switch between different Backbone collection models (by clicking on a table row). I've googled for "check backbone model dirty data" (for instance) and not found anything…

Dexygen
- 12,287
- 13
- 80
- 147
2
votes
1 answer
How to set an ImageDocument to be not dirty in dm-script
How do I set an ImageDocument not to be dirty anymore in python dm-script without saving?
I have the python code posted below which can be represented by the following dm-script code.
String file_path = GetApplicationDirectory(0,…

miile7
- 2,547
- 3
- 23
- 38
2
votes
1 answer
Can I avoid using $scope and have user actions set AngularJS dirty bit?
I have a table of settings (e.g., check boxes) on a form and the user has the ability to add and remove table rows. theForm.$dirty gets set if the user changes a setting (e.g., checks or unchecks a check box) but not if a row is added to or removed…

Chris Nelson
- 3,519
- 7
- 40
- 51
2
votes
2 answers
Check to see if selection/text was changed in form
I have a form with about 20 controls on it (ComboBox, TextBox, etc) that I have pre-loaded with data. This is being displayed to the user and gives them the capability to change any of the fields.
I do not know the best way of recognizing that…

BobSki
- 1,531
- 2
- 25
- 61
2
votes
1 answer
Rails is not saving an attribute that is changed
I am appending some text to a notes field on one of my ActiveRecord::Base models but when I save it, it doesn't get updated:
valve.notes
#=> "Level: Top"
valve.notes << "\nDirection: North"
valve.notes …

Joshua Pinter
- 45,245
- 23
- 243
- 245
2
votes
2 answers
Is there a clean way of cleaning up duplicate entries in MySQL?
In a table, I have three columns - id, name, and count. A good number of name columns are identical (due to the lack of a UNIQUE early on) and I want to fix this. However, the id column is used by other (4 or 5, I think - I would have to check the…

Thomas Owens
- 114,398
- 98
- 311
- 431
2
votes
2 answers
NHibernate: How to know if, on Flush() SQL will be sent?
I'm a bit puzzled with the NHibernate's IsDirty() method.
Directly after getting a (very large) complex object from my database, NHibernate's ISession.IsDirty() gives 'true'.
IFacadeDAL fd = new FacadeDAL();
// Session's not dirty
IProject proj =…

Hadzjie
- 63
- 6
2
votes
1 answer
How can I add an "IsDirty" property to a LINQ to SQL entity?
I am binding my entities to an edit form in WPF. Within a DataTemplate, I want to be able to set the background color of the root container within a DataTemplate to show it has been changed and these changes have not yet been submitted to the…
user1228