If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Fast output

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-11-09, 03:43
riddhi riddhi is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Question Fast output

hi all

i want to use the output of the select query in the stored procedure and based on this output of the one field like userId i have to fetch data of the different tables..that i have to done but it takes too long time to get output

if u have any idea to get fast output?
Reply With Quote
  #2 (permalink)  
Old 08-11-09, 05:41
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by riddhi
if u have any idea to get fast output?
make sure that the appropriate columns are properly indexed

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-12-09, 07:03
riddhi riddhi is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Question Already Given Index

i have already Given the index on table structure.

but when i run this stored procedure in server database that it still take very long time so you have other idea to get the fast output of this stored procedure
like creating view etc...if yes then how can i fetch result of one select query in to view thats create in stored procedure.

because based on this select query result set further procedure is proceed.

Ex select query give the userIds

and using this userId i have to proceed it means its one kind of input of my stored procedure.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On