Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ruff
Signed-off-by: Rob Howley <howley.robert@gmail.com>
  • Loading branch information
robhowley committed Oct 12, 2024
commit e6fcd78864321b6f8f43684660c9988bfae91846
14 changes: 9 additions & 5 deletions sdk/python/feast/infra/online_stores/online_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,16 @@ async def query_table(table, requested_features):

return idxs, read_rows

all_responses = await asyncio.gather(*[
query_table(table, requested_features)
for table, requested_features in grouped_refs
])
all_responses = await asyncio.gather(
*[
query_table(table, requested_features)
for table, requested_features in grouped_refs
]
)

for (idxs, read_rows), (table, requested_features) in zip(all_responses, grouped_refs):
for (idxs, read_rows), (table, requested_features) in zip(
all_responses, grouped_refs
):
Comment on lines +263 to +272
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when requesting features across multiple tables, we can parallelize the calls to each.

feature_data = utils._convert_rows_to_protobuf(
requested_features, read_rows
)
Expand Down