buffer-compare vs if

Posted by jefbrown on 07-Jul-2010 09:38

When is it optimal to use a buffer-compare with the "using" fields option vs an "if" statement to compare each field?  Is using the buffer-compare just easier to code, or are there other benefits at the engine level doing one vs the other?

All Replies

Posted by Tim Kuehn on 08-Jul-2010 14:29

buffer-compare will automatically expand to cover all applicable fields, while IF statement has to be manually updated.   

This thread is closed