I've found that if the data is in one or all of the searched tables the search is fast. However, when if even one of the tables being searched doesn't contain the item I need, it is slow.
You seem to be contradicting yourself. If you search for data in two tables, don't find it in the first, but find it in the second, is the search fast, or is it slow?
What is the nature of the data you are searching for (e.g., is it keywords, part numbers, or something like that), and do you have that field indexed? If not, then you're doing a complete table scan for each search, which is a very poor approach to doing searches over a large search space.
In reply to Re: Need faster MySql data fetching with perl DBI
by dws
in thread Need faster MySql data fetching with perl DBI
by shaolindoman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |