Working with Results
FirstPicked — get the first match
Returns the first chunk matching the selector. Returns an error if nothing is found.
# Returns the first matching Chunk (with .id, .code, .note, .extra)
chunk = memory.first_picked(view, selector)
print(chunk.id, chunk.code, chunk.note)
Iterator — iterate all matches
Not available as iterator in Python. Use mem_get() for batch reads.
mem_get — high-level batch read
results = storage.mem_get(selector)
for hv in results:
print(hv)