LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2011, 02:34 PM   #1
smritisingh03
Member
 
Registered: Nov 2010
Posts: 43

Rep: Reputation: 0
parellel ecuction of sql query..


Hi All

I have to run a simple query-

Select count(*) from $table_name;

this has to run on 50000 tables in DB.it is taking too much time...so i thought of doin // execution to improve the performance...could someone guide me as to how can i run this query in // for say 10 tables at a time...any suggestions in highly appreciated.
 
Old 02-04-2011, 02:53 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by smritisingh03 View Post
Hi All
I have to run a simple query-

Select count(*) from $table_name;

this has to run on 50000 tables in DB.it is taking too much time...so i thought of doin // execution to improve the performance...could someone guide me as to how can i run this query in // for say 10 tables at a time...any suggestions in highly appreciated.
Well, you don't say what kind of SQL database you're using, version/distro of Linux, and what language you'd like to write this script in, so we can't help you. Provide details, and perhaps we can help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
sql query help struct Programming 2 10-27-2010 01:29 AM
Sql query issue talat Linux - Server 3 10-18-2007 09:59 AM
How would I make this SQL query OlRoy Linux - Server 3 03-14-2007 03:51 PM
Query SQL error gabsik Linux - Software 37 07-22-2006 03:34 AM
Massive SQL Query patpawlowski Programming 7 03-05-2004 05:24 PM


All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration