Replace Any.readInstanceProperty #19

Closed
opened 2023-01-02 22:26:15 +01:00 by Dutch · 0 comments
Owner

The Any.readInstanceProperty-method, currently used to fetch the value of a relation property when updating, is extremely slow.

Things to consider:

  1. We know about the resulting target type (RoomExEntity)
  2. We know the name of the property
  3. We are in control over the generation of the DAO

Theoretically, it should be possible to create a hidden function in the DAO to access any property. Therefore, we could fetch the data without the need of reflection...

Not a single, but 2 functions would be needed. One which returns RoomExEntity? and one with List<RoomExEntity>?.

The `Any.readInstanceProperty`-method, currently used to fetch the value of a relation property when updating, is extremely slow. Things to consider: 1. We know about the resulting target type (RoomExEntity) 2. We know the name of the property 3. We are in control over the generation of the DAO Theoretically, it should be possible to create a hidden function in the DAO to access any property. Therefore, we could fetch the data without the need of reflection... Not a single, but 2 functions would be needed. One which returns `RoomExEntity?` and one with `List<RoomExEntity>?`.
Dutch self-assigned this 2023-01-02 22:26:15 +01:00
Dutch closed this issue 2023-01-06 23:22:50 +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#19
No description provided.