Skip to content

Commit b6a9820

Browse files
committed
Bump Version 0.5.9
1 parent d60f4a8 commit b6a9820

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "superduper-framework"
77
description = "🔮 Bring AI to your favourite database 🔮"
88
readme = "README.md"
9-
version = '0.5.8'
9+
version = '0.5.9'
1010
license = {file = "LICENSE"}
1111
maintainers = [{name = "superduper.io, Inc.", email = "[email protected]"}]
1212
keywords = [

superduper/components/model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)