kukeiko / entity-space

MIT License
5 stars 1 forks source link

add separate cache for entity query execution results #217

Closed kukeiko closed 7 months ago

kukeiko commented 7 months ago

What

Have a cache dedicated to the results loaded for a singular issued query instead of using the global cache. The lifetime of the cache is short lived, as it only exists from start of query execution until end of query execution. After a query is executed, the results are loaded from that cache and returned to the user. The cache is then destroyed.

Why

The global cache (which is subject to change in #216) is supposed to be a cache where only an EntitySource reads from, and not the EntityQueryExecutor.

Todo