Hello Eveybody,
I have just joined as DBA.My problem will be simple for you all
gurus.I have a table with 50 lakh row,when i am writing a select
statement for this table it takes around 7 minute to display result.I
used DBCC REINDEX for this table but it was not effective.
So please pass ur suggestion that i should follw to reduce my
execution time.
As its effecting my server performance.
Thank u in advance
vv 2 1443
"Vinod Venugopal" <vi*************@gmail.com> wrote in message
news:98*************************@posting.google.co m... Hello Eveybody,
I have just joined as DBA.My problem will be simple for you all gurus.I have a table with 50 lakh row,when i am writing a select statement for this table it takes around 7 minute to display result.I used DBCC REINDEX for this table but it was not effective. So please pass ur suggestion that i should follw to reduce my execution time. As its effecting my server performance.
Without a sample schema and some data folks can play with and examples of
your queries, there's not much people can suggest.
It's not clear, but I'm assuming that you actually have indexes on the
columns in your where clause? If not,the DBCC REINDEX doesn't matter one
way or another.
(also, what's lakh?) Thank u in advance vv
On Tue, 12 Apr 2005 13:37:12 GMT, Greg D. Moore (Strider) wrote: (also, what's lakh?)
http://en.wikipedia.org/wiki/Lakh.
| A lakh (also spelled lac) is a unit in a traditional number system, still
| widely used in India, equal to a hundred thousand. A hundred lakh makes
| a crore.
|
| This system of measurement also introduces separators into numbers in a
| different place than is common outside India. For example, 3 million (30
| lakh) would be written as 30,00,000.
So, when the OP says
I have a table with 50 lakh row
he means five million rows. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bacci |
last post by:
I have two tables. The first is "Locations" which has 52,000 zip codes
w/cooresponding latitudes and longitudes. The second "Suppliers" has 2,000
company names and addresses.
The user enters a...
|
by: Alex Glass |
last post by:
I am building a query to select contacts and filter by category. I was
wondering if anyone could explain why the first select statement takes 950
times as long to execute compared to the second....
|
by: Umar Farooq |
last post by:
Hello all,
Please bear with the long explanation of my scenario.
As I'm relatively new to the query world, I like to write my queries
using the visual toos such as the "View" option in SQL...
|
by: Eugene |
last post by:
I am trying to set query optimization class in a simple SQL UDF like
this:
CREATE FUNCTION udftest ( in_item_id INT )
SPECIFIC udftest
MODIFIES SQL DATA
RETURNS TABLE( location_id INT,...
|
by: WantedToBeDBA |
last post by:
Hi all,
db2 => create table emp(empno int not null primary key, \
db2 (cont.) => sex char(1) not null constraint s_check check \
db2 (cont.) => (sex in ('m','f')) \
db2 (cont.) => not enforced...
|
by: Bernard Dhooghe |
last post by:
To retrieve data from a query where multiple rows can be returned, a
cursor can be used.
Different programming interface exist for cursors: embedded SQL, CLI,
SQL PL, SQLJ, JDBC.
I we look at...
|
by: John Welch |
last post by:
I'm developing my first multi-user application, and have been reading a lot
about the basics of multi-user optimization (ADH vol 2, this newsgroup's
archives, etc.). I've decided to go with a file...
|
by: elein |
last post by:
Yes, I vacuumed. Reproduced on both 7.3.2 and 7.5.
Brain dead java beans want order by clauses in views
that they use.
my view is:
select ....
from bigtable b left join lookuptable l
order...
|
by: Sim Zacks |
last post by:
I just did a dump and restore of my database and one of my views did
not recreate.
The error received was :
pg_restore.exe: could not execute query: ERROR: column reference "pricinggroupid" is...
|
by: Michel Esber |
last post by:
Hi all,
Db2 v8 FP15 LUW .
create table T (ID varchar (24), ABC timestamp)
There is an index for (ID, ABC), allowing reverse Scans.
My application needs to determine MIN and MAX(ABC) for a...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |