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
Various performance improvements (cache entities, entity and property de... #228
Conversation
… definitions, use Iterators instead of callbacks)
tnx. Only difference to #215 is DataController line 129, right? I'm not sure why caching works for get but not for add. The add method wants a channel and the get an entity, but that shouldn't be the problem (as we EntityController::getSingleResult stores in the cache what it returns). If it's easy to make it work for both, could you do that? The class looks kind of scary, anyway... And could you add some comments to the new option in volkszaehler.conf.php, maybe with some description what is cached in which case. |
Partially true. Disabled for POSTs not using JSON (i.e. via GET).
True but not a problem the user typically encounters. To solve, either:
I'd he happy to add support for 1) but it feels like a move in the wrong direction. Would again be faster though. |
Well, my clients use POST but with URL parameters :)
I guess we should decide at one point if we want to keep the ORM (and use it everywhere) or get completely rid of it... |
Thats not the problem.
It does not. The distinction is JSON in POST body or not. Reason is that only POST body can carry multiple timestamp/value pairs. It's easy enough to change the other case to SQL as well.
Probably not as the whole entity management is quite complex and Doctrine has clear advantages. Why not use pure SQL for the parts where it matters (e.g. Aggregation)? |
@jahir Updated This should be the version we commit. |
90e0d9c
to
ca4847a
Compare
Various performance improvements (cache entities, entity and properties)
nicely done, thanks! :) |
...finitions, use Iterators instead of callbacks)