File tree Expand file tree Collapse file tree
Orm/Xtensive.Orm.Oracle/Sql.Drivers.Oracle/v11 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77using System ;
88using Xtensive . Sql . Compiler ;
9+ using Xtensive . Sql . Ddl ;
910
1011namespace Xtensive . Sql . Drivers . Oracle . v11
1112{
1213 internal class Translator : v10 . Translator
1314 {
15+ //so called INITRANS value
16+ protected const int TableTransactionalParallelismLevel = 3 ;
17+ protected const int IndexTransactionalParallelismLevel = 3 ;
18+
19+ public override string Translate ( SqlCompilerContext context , SqlCreateTable node , CreateTableSection section )
20+ {
21+ if ( section == CreateTableSection . TableElementsExit )
22+ return $ ") INITRANS { TableTransactionalParallelismLevel } ";
23+ return base . Translate ( context , node , section ) ;
24+ }
25+
26+ public override string Translate ( SqlCompilerContext context , SqlCreateIndex node , CreateIndexSection section )
27+ {
28+ if ( section == CreateIndexSection . ColumnsExit )
29+ return $ ") INITRANS { IndexTransactionalParallelismLevel } ";
30+ //CreateIndexSection.ColumnsExit:
31+ //return ")"
32+ return base . Translate ( context , node , section ) ;
33+ }
34+
1435 public override string Translate ( SqlValueType type )
1536 {
1637 // we need to explicitly specify maximum interval precision
You can’t perform that action at this time.
0 commit comments