Page History
...
- Preparation of cspad data in text/unicode format for inserting takes ~1sec.
- Only limited precision data can be saved due to limit on document size 16MB.
Inserting data
Code Block | ||||
---|---|---|---|---|
| ||||
doc_id = col.insert_one(doc).inserted_id |
Insertion time is 110-180ms.
Find data
Code Block | ||||
---|---|---|---|---|
| ||||
t0_sec = time() docs = col.find({"run": 125}) dt_sec = time() - t0_sec |
Finding data time is 50-60us
Unpack data
Code Block | ||||
---|---|---|---|---|
| ||||
doc = docs[0] xcarr = pickle.loads(doc["data"]) # 30-40ms arr = gu.np.fromstring(xcarr, dtype=float, count=-1, sep=' ') # 300ms |
time Time to unpack is 350ms.
Summary
...
Overview
Content Tools