You are viewing limited content. For full access, please sign in.

Question

Question

interaction with DataBase

asked on June 18, 2015

Can you insert a index into database of laserfiche without affecting integrity?

I hope that they can help me 

Regards

0 0

Replies

replied on June 18, 2015

Modifying the SQL db used by the LF Repository is not something we would support.

0 0
replied on June 18, 2015

Ray's right that it's not supported, but on the other hand indexes don't change the way a table behaves they just change the performance profile of queries and modifications.  What index are you thinking of adding and why?  Is it something that a profiler has suggested?

0 0
replied on June 18, 2015

Becase my database is very expensive and my query runs very slow, it takes 3 minutes to send a response.

Index on Table propval, field str_val asc.

 

My DBA suggested the index.

 

 

0 0
replied on June 18, 2015

Is this a new repository? The following indexes should exist on the propval table, but if it's not new, maybe they got lost in one of the upgrades.

create index propval_num_val_ix on propval (num_val, prop_id, tocid)
create index propval_date_val_ix on propval (date_val, prop_id, tocid)
create index propval_short_str_val_ix on propval (short_str_val, prop_id, tocid)

-- Create index on the str_val if the server is sql2k5 or above and is not express edition
if cast(SERVERPROPERTY('edition') as nvarchar) not like 'Express%' 
  and cast(left(cast(SERVERPROPERTY('productversion') as nvarchar),
  charindex('.', cast(SERVERPROPERTY('productversion') as nvarchar)) - 1) as int) >= 9
  EXECUTE sp_executesql N'create index propval_str_val_ix on propval (prop_id, tocid) include (str_val)'
GO

 

0 0
replied on June 18, 2015

Thx for the info but my DBA say that if We can add other index  without generate problem 
in the next picture is an example

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.