Skip to content

Commit

Permalink
Bump Version 0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
blythed committed Jan 30, 2025
1 parent d60f4a8 commit b6a9820
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "superduper-framework"
description = "🔮 Bring AI to your favourite database 🔮"
readme = "README.md"
version = '0.5.8'
version = '0.5.9'
license = {file = "LICENSE"}
maintainers = [{name = "superduper.io, Inc.", email = "[email protected]"}]
keywords = [
Expand Down
4 changes: 4 additions & 0 deletions superduper/components/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ def _prepare_inputs_from_select(
X_data: t.Any
mapping = Mapping(X, self.signature)
if in_memory:
logging.info('Loading data into memory...')
docs = list(self.db.execute(select.select_using_ids(ids)))
pid = select.table_or_collection.primary_id
lookup = {r[pid]: r for r in docs}
docs = [lookup[id_] for id_ in ids]
X_data = list(map(lambda x: mapping(x), docs))
else:
assert isinstance(self.db, Datalayer)
Expand Down

0 comments on commit b6a9820

Please sign in to comment.