Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
l-n-s
gajim
Commits
21cffe50
Commit
21cffe50
authored
7 years ago
by
Yann Leboulanger
Committed by
Philipp Hörist
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add index on stanza_id column to speed up de-duplication when syncing logs
parent
1c9df8e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/common/optparser.py
+11
-0
11 additions, 0 deletions
gajim/common/optparser.py
with
11 additions
and
0 deletions
gajim/common/optparser.py
+
11
−
0
View file @
21cffe50
...
...
@@ -251,6 +251,8 @@ class OptionsParser:
self
.
update_config_to_0982
()
if
old
<
[
0
,
98
,
3
]
and
new
>=
[
0
,
98
,
3
]:
self
.
update_config_to_0983
()
if
old
<
[
0
,
99
,
2
]
and
new
>=
[
0
,
99
,
2
]:
self
.
update_config_to_0992
()
app
.
logger
.
init_vars
()
app
.
logger
.
attach_cache_database
()
...
...
@@ -935,3 +937,12 @@ class OptionsParser:
elif
password
==
"
libsecret:
"
:
app
.
config
.
set_per
(
'
accounts
'
,
account
,
'
password
'
,
''
)
app
.
config
.
set
(
'
version
'
,
'
0.98.3
'
)
def
update_config_to_0992
(
self
):
self
.
call_sql
(
logger
.
LOG_DB_PATH
,
'''
CREATE INDEX IF NOT EXISTS
idx_logs_stanza_id ON logs (stanza_id);
'''
)
app
.
config
.
set
(
'
version
'
,
'
0.99.2
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment