Performance Tuning [Inserts] in tempdb
I have a Web Based Application that the DBA is "engouraging" me to switch
for ASE12.5 to ASA9. I have made many changes in my queries and driver
setup. The App allows me login and submit my queries but they only rarely
come to completion. In ASE12.5 they take about 3 minutes and ASA9 they are
taking about 44 minutes (this is rediculous). Let me model out our basic
1) generate a query using Velocity template macros
1a) The query will create a temp table #period
1b) populate #period with appropriate data
1c) create a #Utilization temp table
1...ASE 15 Performance and Tuning Guides
Does anyone know when the updated ASE 15 versions of
"Performance and Tuning Guides" will be released?
The guides on sybooks are for ASE12.5.1
Thanks in advance.
> Does anyone know when the updated ASE 15 versions of
> "Performance and Tuning Guides" will be released?
I *think* that they were supposed to be released sometime
later this year, but I don't have any clear information.
I'm not aware of when these will be released. I'm guessing some time after the
Ho...Check List for ASE 11.9.2 Performance Tuning
We need to troubleshoot the performance issue in an ASE 11.9.2 server.
During the system in a slow response time state, about 20 Sh_page locks (Non
Cursor Lock) found on the syslogins when I execute the sp_lock.
Can anyone give me some advise on which areas I should check first (may be a
check list) ?
You might want to read through the Performance & Tuning guide for things
like query performance management with things like sp_showplan and
What you could consider is this. Any running task may be running with a
bad query plan. Her...ASE 15.0.2 Row-level locking for DDL / tempdb performance
I was trying to compare the tempdb performance between
12.5.3 and 15.0.2 by simulating heavy DDL / transaction
activity in tempdb. Basically, I ran the below loop in 16
parallel sessions in tempdb. [n] represents 1 to 16,
sourcedb has tables objects1 to objects16. Session1 will use
sourcedb..objects1 / #objects1, Session2 will use
sourcedb..objects2 / #objects2 etc.,
declare @cnt int
while(1 = 1)
select * into #objects[n] from sourcedb..objects[n]
insert into #objects[n] select * from sourcedb..objects[n]
create index obj[n]_idx on #objects[n](id)
delete fr...ASE to ASE
Is anyone out there doing ASE to ASE replication using SQL remote? If
you are have created your own version of the SSEXTRACT utility to set up
a replicant database in ASE rather than ASA? Or does anyone know if
SYBASE has created a version SSEXTRACT for use with ASE to ASE
Thanks in advance
I thought the SQL Remote Replication support in ASE11.5 was meant for a
consolidate-database only (by design)! At least that was what Sybase
said when they announced support for SQL Remote technology support in
I will be happy to...performance tuning
I run select * statement from a view on both ASE11.5 and ASE12. The speeds
for returning the value are very different. On ASE11.5, it only takes 1min
while on ASE12, it takes 30min.
ASE12 has bigger data caches for the database and tempdb than what the
ASE11.5 has. Both of them have the same indexes. After I run sp_sysmon on
ASE12, in the report of data cache management, ASE12 has high cache hit
ratio (that is good) and high pool turnover (no good). Does that mean I
need to increase the data cache for ASE12? I also noticed that in OS, ASE12
has very tight free mem...ASE Performance
I'm using ASE 11.9. Does anyone know which is the most efficient whay to
speed up the ASE server ? I have a stored procedure carries out following
things using a CURSOR:
- Read record from table_a
- Do some data manipulation to the record read
- Insert record to table_b if record is not exist in table_b
- Update record to table_b if record is exist in table_b
table_a contains around 40,000 records and table_b contains around 300,000
Originally, my coding in the stored procedure is as follow:
SELECT .... FROM table_b WHERE ...
IF @@rowcount > 0
Hi there, ask a rather beginner question here.
we have this ASE12.0 on Solaris 7. it's a enterprise 3000
machine, with 1G RAM, 2 CPUs both 168MHz. via /etc/system
assigned 800M to ASE. All other settings in the configure
file are mostly DEFAULT.
we donot have many concurrent users on system most of the
time, and the workload/ transaction is not very high. (most
time, just 50 to 60 users online).
however, lately users complains performance problem. esp
just only one user was running a little big large report.
and when I check sp_lock, actually very few locks, and just
some shared...tempdb performance
It's my understanding tempdb performs better on file system than on raws.
Is this still the case? What unix parameters need to be set on the files
system? Should 'allow sql server async i/o' bet set to 1, or does this only
pertain to raws? Running ASE 126.96.36.199 EBF 10391 64bit on HP/UX 11.0.
...How to tune my ASE???
I setup 2 ASE servers (same hw) in other sites, but one of ASE is runnig so
slow. Users take more than 5 minutes to load a report while other users take
less than 5 seconds to load same report on another "fast" ASE. Why? Attached
my sysmon report, pls comments on this server and advise solutions. Thanks.
begin 666 run_sysmon_log.050527
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/2 *(" @(" @4WEB
M86YC92!297!O<G0*/3T]/3T]/3T]...ASE and ASE
Could it be possible to take scripts from ASA and load them in an ASE
Any information is welcome
ASA supports a fairly large sub-set of Transact-SQL, so if you write your
stored procedures and triggers in ASA using T-SQL, you should be able to
create scripts that will run against both ASE and ASA. If you're planning
to do this though, I would suggest developing your database schema against
ASA, since everything you write in T-SQL in ASA will be supported on ASE,
but the reverse is not true.
Check out the section in the ASA documentation entitled "Tra...Performance tuning
We are using Jconnect 6.0.5 (latest EBF). We found that
'select db_name' was getting called before each and every
We are not sure why it is doing this. We need to prevent
this unnecessary db call. Does any one have any idea
This sounds like some JDBC Call might be happening in your application -
offheand I don't
know exactly what, but something like Connection.getCatalog()
I don't think jConnect caches this sort of thing - so it might be the
application code makes the call for each command execution.
If yo...ASE performance
I'm new to Sybase, so excuse me if this is a stupid
question, and I guess I might not supply enough information
to make an informed judgement ...
We've got ASE 12.0 running on a Sun Sparc server with 2 x
450Mhz processsors and 2 gig RAM + RAID. We run a script
which updates a join table - i.e. a table with two integer
columns with keys in them. The sql script inserts a total of
1.8 million rows into the table and the entire operation
takes around 18 minutes to complete.
Does this sound like reasonable performance - it feels slow
to me, but I don't have any comp...Performance tuning
Is there a way to create and analyze some kind of trace files with SQL
I have a program that issues "generated" SQL statements. I'd like to
quickly look for those that create full table scans in any of the used
tables to see if I can optimize data access.
Hilden, near Duesseldorf
I wrote something like this a couple months back. It interrogates the
trace file that PowerBuilder produces. It's rather proprietary since
it's one of the tools that I use when I do Performance & Tuning