Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-10-2008, 11:02 PM   #3 (permalink)
Jwesttci
James
 
Join Date: Dec 2008
Location: Baton Rouge
Age: 52
Posts: 2
Wink When it comes to SQL, indexes are your friend!!!

SQL can be very efficient as long as you access your data using indexes. The problem most developers run into with relational databases is that they don’t give proper consideration to how the indexes are structured when creating their SQLs. The database software is going to extract the information you requested even if it needs to read thru every record in the table. One thing I have found is that joining tables together using a single query can sometimes confuse the database optimizer logic (if the SQL is not built correctly) causing a full table read, sometimes a full sub-table read for every record selected from the primary table. I have been developing code using ORACLE & MySQL for 12 years and try to stay clear of joins whenever I can. If you must join tables together try creating a view.
Jwesttci is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,844
Threads: 89,212
Posts: 380,654
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jonesstr
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.