File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66name = " superduper-framework"
77description = " 🔮 Bring AI to your favourite database 🔮"
88readme = " README.md"
9- version = ' 0.5.8 '
9+ version = ' 0.5.9 '
1010license = {file = " LICENSE" }
1111maintainers = [{
name =
" superduper.io, Inc." ,
email =
" [email protected] " }]
1212keywords = [
Original file line number Diff line number Diff line change @@ -573,7 +573,11 @@ def _prepare_inputs_from_select(
573573 X_data : t .Any
574574 mapping = Mapping (X , self .signature )
575575 if in_memory :
576+ logging .info ('Loading data into memory...' )
576577 docs = list (self .db .execute (select .select_using_ids (ids )))
578+ pid = select .table_or_collection .primary_id
579+ lookup = {r [pid ]: r for r in docs }
580+ docs = [lookup [id_ ] for id_ in ids ]
577581 X_data = list (map (lambda x : mapping (x ), docs ))
578582 else :
579583 assert isinstance (self .db , Datalayer )
You can’t perform that action at this time.
0 commit comments