Fetch child data without fetching relation ids first #10

Closed
opened 2022-12-20 18:23:38 +01:00 by Dutch · 0 comments
Owner

It should be possible to fetch child data in a single query, without the need to fetch the ids first.

SQL command would be:

SELECT * FROM kind_tabelle
WHERE id IN (SELECT child_id FROM rel_tabelle WHERE parent_id = $parentId);

Query should look something like:

@Query("SELECT * FROM Table WHERE id IN (:ids)")

Note: This would not work with IStorageResolver, because we would need the ids to resolve the data elsewhere.

It should be possible to fetch child data in a single query, without the need to fetch the ids first. SQL command would be: ``` SELECT * FROM kind_tabelle WHERE id IN (SELECT child_id FROM rel_tabelle WHERE parent_id = $parentId); ``` Query should look something like: ``` @Query("SELECT * FROM Table WHERE id IN (:ids)") ``` **Note:** This would not work with IStorageResolver, because we would need the ids to resolve the data elsewhere.
Dutch self-assigned this 2022-12-20 18:23:45 +01:00
Dutch added this to the Release v1.0 project 2022-12-20 18:23:49 +01:00
Dutch removed their assignment 2022-12-20 18:23:59 +01:00
Dutch self-assigned this 2022-12-20 18:24:03 +01:00
Dutch added this to the v1.0 milestone 2022-12-20 18:41:53 +01:00
Dutch closed this issue 2023-01-02 22:31:22 +01:00
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Dutch/RoomEx#10
No description provided.