Beginner |
|
Joined: Tue Nov 18, 2003 12:34 am Posts: 39 Location: Dallas, Texas, US
|
Please allow me to ask these basic questions in the search functions with a with performance perspective.
I understand the basic differences between the methods find(), load(), and get() (which is the upfront knowledge of the id). Thinkng of performance, I have these questions:
1. Does find() do the same as that of load() in terms of locking the tables in a JDBC transaction and performing?
2. The docs says
"If you are not certain that a matching row exists, you should use the get() method, which hits the database immediately and returns null if there is no matching row"
How is this different from a find()?
Thanks,
Madhan.
|
|