Making searching faster

Reply

Join Date: Nov 2004
Posts: 12
Reputation: bsunkel is an unknown quantity at this point 
Solved Threads: 0
bsunkel bsunkel is offline Offline
Newbie Poster

Making searching faster

 
0
  #1
Jun 30th, 2005
Heya all,

I have a small problem. I have created a phonebook program for myself. I am using MySQL to store all the data. Just the usuallly stuff like name, tel No, address etc. I have about 400 entries in MySQL.

ON MY SEARCHING MENU:
I use a JTextfield to enter the name i want to search for. When I click my JButton(search), the info is displayed on a JTable. All works perfectly. The problem I am having is that it takes about 3 to 5 seconds to display. How do I make it display the details faster? If I need to use a Thread how do I use one? When must the thread start running? eg, must it start before I click my JButton.

Any help would be great

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Making searching faster

 
0
  #2
Jun 30th, 2005
How are you searching through the DB?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC