![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
PLAN> Ord<seq> JNLO OrdPFr<Place> JNLO OrdPTo<Place> Equ<Equipment> JNL AC<seq> JNL OM<OrdModality> JNLO M<Modality> JNLO Dep<Address> JNLO OMP<R_OrdModality> JNLO PTo<Place> JNLO PFr<Place> JNLO OP<OrdProduct JNLO Cus<Address> JNL Pro<Product> JNLO CouFr<Country> JNLO CouTo<Country> JNLO TU<TransporTUnit> JNLO Plb<Planboard> : GrByS[ OrdProduct<R_Orders> ] |
|
Hi, I'm running a select statement on a view joined with a temp table. In 2 databases it's running very fast and in 1 database it's slow. I've found that the difference is in the planused on the different machines. The 2 machines running fast use ASA 9.0.2 build 3456 and 9.0.2 build 2451. The one that is slow uses 9.0.2 build 3420 The select statement looks like: select A.* from View A join TempTable AC on A.Id = AC.Id The machines where the database is quick is use the following plan: PLAN> AC<seq> JNL OM<OrdModality> JNLO M<Modality> JNLO Dep<Address JNLO OMP<R_OrdModality> JNLO PTo<Place> JNLO Pfr<Place> JNLO OP<OrdProduct> JNLO Cus<Address> JNLO Pro<Product> JNLO CouFr<Country JNLO CouTo<Country> JNLO TU<TransportUnit> JNLO Plb<Planboard> JNL Ord<Orders> JNLO OrdPFr<Place> JNLO OrdPTo<Place> JNLO Equ<Equipment> : GrByS[ OrdProduct<R_Orders> ] AC is the temp table and the view contains all the other tables. The machine where the database is slow uses the following plan: PLAN> Ord<seq> JNLO OrdPFr<Place> JNLO OrdPTo<Place> Equ<Equipment> JNL AC<seq> JNL OM<OrdModality> JNLO M<Modality> JNLO Dep<Address> JNLO OMP<R_OrdModality> JNLO PTo<Place> JNLO PFr<Place> JNLO OP<OrdProduct JNLO Cus<Address> JNL Pro<Product> JNLO CouFr<Country> JNLO CouTo<Country> JNLO TU<TransporTUnit> JNLO Plb<Planboard> : GrByS[ OrdProduct<R_Orders> ] |
![]() |
| Thread Tools | |
| Display Modes | |
| |