Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Lazy Property Handler #1121

Open
dylanvdmerwe opened this issue Dec 19, 2022 · 1 comment
Open

Enhancement: Lazy Property Handler #1121

dylanvdmerwe opened this issue Dec 19, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request request A request from the community.

Comments

@dylanvdmerwe
Copy link

Describe the enhancement

From the docs around property handlers, you have this example:
image
image

What would be incredible is for RepoDB in the background to hold the backing string on the POCO on retrieval. Only when the property is first accessed, is the property handler run (i.e deserialized). In this way you defer the cost of the property handler for when it is first used, and thereafter the object is set.

@dylanvdmerwe dylanvdmerwe added the enhancement New feature or request label Dec 19, 2022
@mikependon mikependon added the request A request from the community. label Dec 19, 2022
@mikependon
Copy link
Owner

Hmmm, interesting proposal. Definitely, it will improve the perf specially if property handler is doing an extensive operation. We will look how this is possible with the existing implementation we had, most likely not due to PH dependency to the connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request request A request from the community.
Projects
None yet
Development

No branches or pull requests

2 participants