forked from M-Labs/artiq
RELEASE_NOTES: add LMDB migration script (#1743)
This commit is contained in:
parent
c53d333d46
commit
e015483e48
@ -27,7 +27,22 @@ Highlights:
|
||||
* Full Python 3.10 support.
|
||||
* Distributed DMA is now supported, allowing DMA to be run directly on satellites for corresponding
|
||||
RTIO events, increasing bandwidth in scenarios with heavy satellite usage.
|
||||
* Persistent datasets are now stored in a LMDB database for improved performance.
|
||||
* Persistent datasets are now stored in a LMDB database for improved performance. PYON databases can
|
||||
be converted with the script below.
|
||||
|
||||
::
|
||||
|
||||
from sipyco import pyon
|
||||
import lmdb
|
||||
|
||||
old = pyon.load_file("dataset_db.pyon")
|
||||
new = lmdb.open("dataset_db.mdb", subdir=False, map_size=2**30)
|
||||
with new.begin(write=True) as txn:
|
||||
for key, value in old.items():
|
||||
txn.put(key.encode(), pyon.encode(value).encode())
|
||||
new.close()
|
||||
|
||||
|
||||
|
||||
ARTIQ-7
|
||||
-------
|
||||
|
Loading…
Reference in New Issue
Block a user