Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tempsdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
tempsdb
Commits
18c0bf1b
Commit
18c0bf1b
authored
4 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into develop
parents
94ff2967
60490d6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tempsdb/series.pyx
+12
-0
12 additions, 0 deletions
tempsdb/series.pyx
with
12 additions
and
0 deletions
tempsdb/series.pyx
+
12
−
0
View file @
18c0bf1b
...
...
@@ -51,6 +51,18 @@ cdef class TimeSeries:
chunk
.
switch_to_descriptor_based_access
()
return
0
cpdef
int
enable_mmap
(
self
)
except
-
1
:
"""
Switches to mmap-based file access method for the entire series,
and all chunks open inside.
"""
self
.
descriptor_based_access
=
False
cdef
Chunk
chunk
with
self
.
lock
,
self
.
open_lock
:
for
chunk
in
self
.
open_chunks
.
values
():
chunk
.
switch_to_mmap_based_access
()
return
0
def
__init__
(
self
,
path
:
str
,
name
:
str
,
use_descriptor_based_access
:
bool
=
False
):
self
.
descriptor_based_access
=
use_descriptor_based_access
self
.
mpm
=
None
...
...
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