HeyPuter / puter

🌐 The Internet OS! Free, Open-Source, and Self-Hostable.
https://puter.com
GNU Affero General Public License v3.0
25.65k stars 1.69k forks source link

Implement batch read for the `apps` driver #586

Open jelveh opened 3 months ago

jelveh commented 3 months ago

We need to improve the apps driver to support batch read operations. This will allow developers to retrieve multiple apps simultaneously using the read (or list maybe?) method.

This implementation is crucial for replacing the old /apps endpoint with the more modern apps driver. The older endpoint supported batch read, which is highly performant in many situations, such as when opening the start menu and listing the apps.

Acceptance Criteria

Modify the read method of the apps driver so that:

KernelDeimos commented 3 months ago

This needs to be considered carefully as it changes the EntityStorage interface. I'm adding a label for anything related to entity-storage.