-
Notifications
You must be signed in to change notification settings - Fork 5
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
Thoughts on In-Memory Cache Extension of the Cache System #303
Comments
Aint kodi has built in memory cache solution with `toCache` or something for listitems objects?
…On March 19, 2019 7:46:58 PM GMT+01:00, da3dsoul ***@***.***> wrote:
I don't know if it's an issue with the way that the SQL/database schema
is put together, but even with cache, the bottleneck is still
retrieving info.
We generally don't keep much loaded, and we could speed it up immensely
by implementing an ORM In-Memory Cache.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#303
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Not that I'm aware of? |
Okay, I tried for a bit. At least for now, I'm marking this as not feasible. It's a shame, as we could make loading almost instantaneous reading it from memory. |
I have an idea... I will try to do PoC and we will see if its worth the hassle or not. |
Go for it. My idea was to use service to persist the memory cache, but it kept getting mysteriously disposed, so I gave up. |
awww, thats what I was thinking after reading in-memory sqlite documentation 👍 so no point in wasting time then ;p |
but maybe I will try the PoC maybe I will |
It's already got a loop. I couldn't even figure out why it was happening. Let me know if you can get a variable to persist. If you can manage that then I know enough from my attempts to get the rest working. |
Specifically, see if you can get a variable to be set from plugin and retrieved from a different menu |
ok, I will then skip the cache part and focus on 'ANY' variable to persist in in-memory database, and if that possible we going forward |
Cool |
My next project is implementing the search menu. I may wait for the cast menu, as I want to do so much more with it. |
what about rest of issues from #301 ? |
I'll get to them, but I want it to be "feature complete", or at least to a level that the more important features, before I worry about minor bugs |
to be honest I was refering only to this "Default sorting Method for Episodes" because without that shit my experience is low so beta for now cant replace my stable build on main htpc ;p so i test it on smaller setup |
That was going to be the first one I look at. It depends on how I feel at the time whether I try to fix that or do search first |
how did you communicate between service and plugin ? |
I tried doing it directly. On the attempt to cache it, I set |
so you used |
http://romanvm.github.io/script.module.simpleplugin/storage.html I did this basically
|
I found your localization shit: http://romanvm.github.io/script.module.simpleplugin/gettext.html |
That isn't in active development and may not work, but the idea is still useful. |
I read about that, he store data inside xbmc.windows
Thats why they persist |
I didn't try anything from that |
IMO, its more of a hack than solution - that could break anytime :-) |
Indeed |
https://stackoverflow.com/questions/7839786/efficient-python-to-python-ipc These are all overengineered for our purpose, but we can use fragments and concepts from them. |
thats too much for me, im doing simpler :-) |
Haha okay. It's there just in case |
ok, its working and persist |
Its ugly as hell but it works as PoC; Just have in mind that its Proof of Concept, not a production code xD your mistake was that when importing service you import it in plugin process so, when plugin die it dies with it, while service working in background. The service you want to access it the one that kodi itself started and not the one you imported. Thats why you need to communicate with it. |
Haha thanks for the warning |
We are busy with other stuff, and that zip will likely need to be converted into a patch. That can be done simply, so don't worry about it. The zip was created at 84cf620, so it'll be diff'd from there. |
in plugin I added 1 line and replace it with another, and the cache is what was important :-) |
Fair |
ok, it was a PoC almost half a year ago. It worked as a PoC. If you ever need it, it will be here - our by that time maybe other solution will be available. |
I don't know if it's an issue with the way that the SQL/database schema is put together, but even with cache, the bottleneck is still retrieving info.
We generally don't keep much loaded, and we could speed it up immensely by implementing an ORM In-Memory Cache.
The text was updated successfully, but these errors were encountered: