Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Transaction log very high when dropping a column on popular table

$
0
0

1> create table t1 (c1 int, c2 int)

2> go

1> insert t1 select id, id from sysobjects

2> go

(32 rows affected)

1> create procedure p as select c1 from t1

2> go

1> dump tran test with truncate_only

2> go

1> select count(*) from syslogs

2> go

 

 

-----------

          20

 

 

(1 row affected)

1> alter table t1 drop c2

2> go

(32 rows affected)

1> select count(*) from syslogs

2> go

 

 

-----------

          79

 

 

(1 row affected)

1> execute p

2> go

c1

-----------

           1

           2

[snip]

   752002679

 

 

(32 rows affected)

(return status = 0)

1> select count(*) from syslogs

2> go

 

 

-----------

         110  <---- execution of p grew the log by 41 records due to rewriting the query tree

 

 

(1 row affected)


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>