hoeyi / Ozym

A web-application for tracking personal finances. Built using Blazor, ASP.NET Core, and Entity Framework Core.
3 stars 0 forks source link

Would it be possible to combine API calls for reference data? #220

Closed hoeyi closed 1 year ago

hoeyi commented 1 year ago

Some client pages may require multiple reference data sets. For example, what if I need to a get a list of securities that are tradable and a separate list of securities that accept deposits?

Can requests be combined to reduce calls?

Originally posted by @hoeyi in https://github.com/hoeyi/NjordinSight/issues/219#issuecomment-1652766155

hoeyi commented 1 year ago

Possibly, but probably not ideal. Seems to mix in knowledge of the user interface with the API, which may make maintenance long term messier. This is also not consistent with plans for changing handling of lookup fields, namely, avoiding returning the entire set in favor of using updated result sets as text input is given. Since reference lists could grow large, it would be ideal if they were subject to the same paging restrictions as index methods.