cancel
Showing results for 
Search instead for 
Did you mean: 

Problem adding database indexes in Relations table in Oracle

ioihanguren_
Star Contributor
Star Contributor

Hi, we have configured Nuxeo to use Oracle database, and we have a problem. In our application the relations are very important, so we need to add an index to the Relations table of Nuxeo in order to have a good performance. The index would take the columns target, source and predicate. When we tried with PostgreSQL we had no problems, and the application worked fast enough for us.

But when we try to add an index in Oracle, we get an error (ORA-01450) because the length of those columns is too big to create an index. Nuxeo creates these columns as NVARCHAR2(2000 CHAR).

We have seen that source and target are used to store UIDs, so we think we can configure those columns as VARCHAR2(36 BYTE), as it is done with other columns that store UIDs in other tables (for example, Hierarchy table's ID).

Is this a good solution? Will this change give any trouble to another functionality of Nuxeo, or will source and target always store UIDs of 36 or less bytes? Is there any other way to do it?

Just in case, I put info about our Oracle database:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
/> PL/SQL Release 11.2.0.2.0 - Production
/> "CORE 11.2.0.2.0 Production"
/> TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
/> NLSRTL Version 11.2.0.2.0 - Production

NLS_CHARACTERSET=AL32UTF8
/> DB_BLOCK_SIZE=8192
/> NLS_LENGTH_SEMANTICS=BYTE

Thank you in advance,

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

Yes, it should be ok to ALTER the columns source and target to smaller sizes to help indexing. The default Nuxeo Platform only stores UUIDs in them.

View answer in original post

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

Yes, it should be ok to ALTER the columns source and target to smaller sizes to help indexing. The default Nuxeo Platform only stores UUIDs in them.

Ok, thank you for the quick answer!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.