File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Orm/Xtensive.Orm.Oracle/Sql.Drivers.Oracle/v11 Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
using System ;
8
8
using Xtensive . Sql . Compiler ;
9
+ using Xtensive . Sql . Ddl ;
9
10
10
11
namespace Xtensive . Sql . Drivers . Oracle . v11
11
12
{
12
13
internal class Translator : v10 . Translator
13
14
{
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
+
14
35
public override string Translate ( SqlValueType type )
15
36
{
16
37
// we need to explicitly specify maximum interval precision
You can’t perform that action at this time.
0 commit comments