Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Other Databases   »   If there are more fields in a table will it take more time to get search results

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Nov 7, 2008, 04:06 AM
Idrees
Junior Member
Idrees is offline
 
Join Date: Jul 2007
Posts: 46
Idrees See this member's comment history on his/her Profile page.
If there are more fields in a table will it take more time to get search results

Hi.

I want to make a database which'll have many tables. One of the table is USER. So I want to search username in User table. My question is if there are 3 fields in this table will it take less time to get search result of username as compared to if I've 30 fields in this table. Or you can say if there are less number of fields in a table then will it take less time to search any field from thousands of records. If this is so then is it a good idea to shif some of the fields of User table in anyother table?

Reply With Quote
 
     

Answers
 
 
Old Nov 7, 2008, 06:42 AM   #2  
Software Expert
JBeaucaire is offline
 
JBeaucaire's Avatar
 
Join Date: Jan 2008
Location: (Call me JB) Bakersfield, CA
Posts: 4,696
JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.JBeaucaire See this member's comment history on his/her Profile page.
Pay to call JBeaucaire for advice ($.75/min)
Call JBeaucaire via Skype™
If UserName is a specific field, it won't matter how many other fields there are, they're not being searched. The search will operate as quickly as ever if you restrict the search to the single field UserName.

Comments on this post
Idrees agrees: Nice answer, satisfies me a lot
  Reply With Quote
 
     
 
 
Old Nov 7, 2008, 06:46 AM   #3  
Computer Expert and Renaissance Man
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 33,639
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
A lot depends on how you do your searches and how your database is designed.

Generally fields that will be searched are indexed. Indexed fields will search faster that non indexed fields, regardless of the number of fields in the table.

But keeping the number of fields down is a principle of relational database design. I suggest you read up on normalization.
  Reply With Quote
 
     
 
 
Old Nov 10, 2008, 12:09 AM   #4  
Junior Member
Idrees is offline
 
Join Date: Jul 2007
Posts: 46
Idrees See this member's comment history on his/her Profile page.
Quote:
Originally Posted by ScottGem View Post
A lot depends on how you do your searches and how your database is designed.

Generally fields that will be searched are indexed. Indexed fields will search faster that non indexed fields, regardless of the number of fields in the table.

But keeping the number of fields down is a principle of relational database design. I suggest you read up on normalization.
But my question is that if there are 3 tables in a database and I've to search from the 1st table then if either size of the 1st table is big or small, will it change speed of search if the 1st table is small as compared to being big.
  Reply With Quote
 
     
 
 
Old Nov 10, 2008, 05:32 AM   #5  
Computer Expert and Renaissance Man
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 33,639
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
We answered that, Thge number of fields doesn't affect searches unless you are trying to do a full text search throughout the table. Otherwise searching is restricited to the field being requested in the search,

Comments on this post
Idrees agrees: thanx its quiet helpful
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
Cascading list box lookup fields in the table design not on a form
(3 replies)
Getting meta tags taken off/google search results
(5 replies)
Windows XP Search Results page
(1 replies)
Google or Yahoo "search results archive"?
(3 replies)
Google Search Results Error
(9 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 04:38 AM.