Hi,
Recently I've encountered a project where has in many places statements like FIND ... NO-LOCK NO-WAIT.
NO-LOCK and NO-WAIT wouldn't be mutually exclusive, like, if you don't want to lock the records, you just want to read them, it is useless the NO-WAIT keyword (FIND...NO-LOCK and NO-ERROR would also be grea here). Otherwise, it has more sense I mean, you use the NO-WAIT with an EXLUSIVE-LOCK option.
From what you know, has this type of construction any use or can be considered a bad habit?
Recently I've encountered a project where has in many places statements like FIND ... NO-LOCK NO-WAIT.
NO-LOCK and NO-WAIT wouldn't be mutually exclusive, like, if you don't want to lock the records, you just want to read them, it is useless the NO-WAIT keyword (FIND...NO-LOCK and NO-ERROR would also be grea here). Otherwise, it has more sense I mean, you use the NO-WAIT with an EXLUSIVE-LOCK option.
From what you know, has this type of construction any use or can be considered a bad habit?