-
Notifications
You must be signed in to change notification settings - Fork 302
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
[3.1] Cache Question #235
Comments
@zpqrtbnk nice catch :), i just playing with NPoco to understand its internal mechanism, IMHO v3.1 introduce a lot of broken changes in its internal structure. I agree with you about |
Into PR mode ;-) |
Hey guys, There is indeed a caching issue that I'm working through at the moment. The pocodata's are rebuilt on each query now as they may need to mutate per Thanks for the feedback
|
As I go through the code and try to understand and check changes vs v2, might submit PRs that mostly add comments, to begin with - if that's OK with you? |
It is indeed quite complex :D, but i think once you traverse all member and built |
That's what already happens with fluent config because you can have
multiple configs but you can only have one attribute mapping so I think I
have a solution. Bare with me.
|
@schotime about fluent mapping, have you read my comment #232 (comment) ? |
@dwirawan I have, and its on my list to have a look at tomorrow after I sort the caching out ;) |
@schotime thanks, maybe i will start some contribution for small patch, since i am not familiar with git, so pardon me for some PR mistake ;) |
@dwirawan Even if you can figure out the problem and can send me the snippet that fixes and a test or post it in the issue then I can always patch it from there ;) |
Just committed up new changes and merged your other PR @zpqrtbnk |
This one fixed now? Can i close? |
From what I've seen, using the new fluent factory et al, my original question is solved. Thanks! |
Hey,
It has to be obvious but I cannot understand it.
The
MemberAccessor
class creates get/set delegates. That happens when aPocoDataBuilder
is initialized. Which seems to happen anytime aPocoDataFactory
has to return aPocoData
for a type for the first time. And eachDatabase
, when created, seems to create and own it ownPocoDataFactory
.Which would mean that each
Database
instance ends up creating a data factory, builders, the get/set delegates, etc. Which sounds... bad.What am I missing? ;-)
S.
The text was updated successfully, but these errors were encountered: