Re: jtds driver and SQL Server performance problem
From: Joe Weinstein (joeNOSPAM_at_bea.com)
Date: 01/16/05
- Next message: Luke Webber: "Re: jtds driver and SQL Server performance problem"
- Previous message: Stuart Leonard: "jtds driver and SQL Server performance problem"
- In reply to: Stuart Leonard: "jtds driver and SQL Server performance problem"
- Next in thread: Luke Webber: "Re: jtds driver and SQL Server performance problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 15 Jan 2005 15:04:44 -0800 To: Stuart Leonard <suncds@verizon.net>
Stuart Leonard wrote:
> I am using the opensource jtds driver to retreive information from an SQL
> Server database. The java application and the SQL Server database both
> reside on the local (c:) drive.
>
> I am using a PreparedStatement object to retrieve a single row from the SQL
> Server database. The "Where" clause of the "Select" statement specifies a
> field that is both a unique and a primary key. The retreival time is
> approximately .6/10ths to 7/10ths of a second, which is horrible.
>
> I am using another PreparedStatement in the java program to retreive a
> single record from a table. The "Where" clause specifies a field that
> contains an index (not primary, not unique), and this retreival is taking
> approximately 10/1000ths of a second.
>
> I cannot come to a conclusion as to why the first record retreival is taking
> so long. Both tables are fairly large (approx. 1.5 million rows) for each
> table. Also, I am selecting only the fields that are needed (I am not
> performing a "Select *")
>
> If anyone can provide me with some debugging ideas, I would appreciate it.
Is the slow query using a string variable to define the value of a VARCHAR
column?
Joe Weinstein at BEA
- Next message: Luke Webber: "Re: jtds driver and SQL Server performance problem"
- Previous message: Stuart Leonard: "jtds driver and SQL Server performance problem"
- In reply to: Stuart Leonard: "jtds driver and SQL Server performance problem"
- Next in thread: Luke Webber: "Re: jtds driver and SQL Server performance problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|