perf(torrents): ability to disable integrity check on torrents adding torrents #47

This option will optimize db usage performance on big databases
This commit is contained in:
Alexey Kasyanchuk
2018-08-06 17:56:21 +03:00
parent 3743a60bec
commit e7b035a1a8
6 changed files with 68 additions and 33 deletions

View File

@ -247,6 +247,18 @@ export default class ConfigPage extends Page {
/>
<div className='fs0-75' style={{color: 'grey'}}>* {__('Enable torrents replication from another rats clients. Dont recomended if torrent scanner works correct')}.</div>
</div>
<div className='column w100p'>
<Toggle
style={{marginTop: '10px'}}
label={__('Check torrent files intergrity')}
toggled={this.options.recheckFilesOnAdding}
onToggle={(e, checked) => {
this.options.recheckFilesOnAdding = checked
this.forceUpdate()
}}
/>
<div className='fs0-75' style={{color: 'grey'}}>* {__('Enable database torrents files intergrity check on adding each torrent. Disable this will free some cpu usage on adding operation.')}</div>
</div>
<div style={{marginTop: 10}}>{__('Torrent network scanner settings')}:</div>