Db threads modify in config interface
This commit is contained in:
parent
1a17645e93
commit
37b8c0241f
3 changed files with 49 additions and 3 deletions
|
@ -191,6 +191,20 @@ class ConfigStorage extends Class
|
|||
{title: "10 threads", value: 10}
|
||||
]
|
||||
|
||||
section.items.push
|
||||
key: "threads_db"
|
||||
title: "Threads for database operations"
|
||||
type: "select"
|
||||
options: [
|
||||
{title: "Sync execution", value: 0}
|
||||
{title: "1 thread", value: 1}
|
||||
{title: "2 threads", value: 2}
|
||||
{title: "3 threads", value: 3}
|
||||
{title: "4 threads", value: 4}
|
||||
{title: "5 threads", value: 5}
|
||||
{title: "10 threads", value: 10}
|
||||
]
|
||||
|
||||
createSection: (title) =>
|
||||
section = {}
|
||||
section.title = title
|
||||
|
|
|
@ -1539,7 +1539,7 @@
|
|||
}
|
||||
]
|
||||
});
|
||||
return section.items.push({
|
||||
section.items.push({
|
||||
key: "threads_crypt",
|
||||
title: "Threads for cryptographic functions",
|
||||
type: "select",
|
||||
|
@ -1568,6 +1568,35 @@
|
|||
}
|
||||
]
|
||||
});
|
||||
return section.items.push({
|
||||
key: "threads_db",
|
||||
title: "Threads for database operations",
|
||||
type: "select",
|
||||
options: [
|
||||
{
|
||||
title: "Sync execution",
|
||||
value: 0
|
||||
}, {
|
||||
title: "1 thread",
|
||||
value: 1
|
||||
}, {
|
||||
title: "2 threads",
|
||||
value: 2
|
||||
}, {
|
||||
title: "3 threads",
|
||||
value: 3
|
||||
}, {
|
||||
title: "4 threads",
|
||||
value: 4
|
||||
}, {
|
||||
title: "5 threads",
|
||||
value: 5
|
||||
}, {
|
||||
title: "10 threads",
|
||||
value: 10
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
|
||||
ConfigStorage.prototype.createSection = function(title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue