Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in MySQL only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
MySQL
Using IN or OR
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
saifahmad
New Member
Join Date:
Nov 2008
Posts:
1
#1
Using IN or OR
Nov 26 '08, 08:21 AM
in MySQL queries, which one is more performance optimized between IN and OR operators.
mwasif
Recognized Expert
Contributor
Join Date:
Jul 2006
Posts:
802
#2
Nov 26 '08, 06:30 PM
I don't think there is any performance difference.
Comment
Post
Cancel
Atli
Recognized Expert
Expert
Join Date:
Nov 2006
Posts:
5062
#3
Nov 26 '08, 11:47 PM
Everything in MySQL is optimized for performance. I doubt it very very much that minor syntax differences like these would affect the performance.
You could always simply try them both out and see for yourself.
Comment
Post
Cancel
mwasif
Recognized Expert
Contributor
Join Date:
Jul 2006
Posts:
802
#4
Nov 27 '08, 11:54 AM
You can use
EXPLAIN
to compare the performance of both the queries.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment