This question has been flagged
2435 Views

Hi,

Is it valid to test record equality (is record1 the same as record2) the following way:

record1 == record2


or should we do:

record1.id == record2.id


Which is the preferred way and why ? Thanks !

Avatar
Discard