目的端表没有索引,导致入库慢。建的那个索引是因为dmhs检测到了自动添加,建议人工筛选没有主键索引的表先建上再装载。
select
s.name SCH,
t.name TAB
from
sysobjects t,
sysobjects s
where
t.subtype$=‘UTAB’
– and t.name not like ‘SREF_CON%’
and t.id not in
(
select tableid from syscons
)
and t.schid=s.id
and S.name !=‘SYS’
目的端表没有索引,导致入库慢。建的那个索引是因为dmhs检测到了自动添加,建议人工筛选没有主键索引的表先建上再装载。
select
s.name SCH,
t.name TAB
from
sysobjects t,
sysobjects s
where
t.subtype$=‘UTAB’
– and t.name not like ‘SREF_CON%’
and t.id not in
(
select tableid from syscons
)
and t.schid=s.id
and S.name !=‘SYS’