Skip to content

Commit

Permalink
RELEASE_NOTES: add LMDB migration script (m-labs#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed May 9, 2023
1 parent c53d333 commit e015483
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down

0 comments on commit e015483

Please sign in to comment.