caraml-dev/merlin

Rework Fetching Model Version List

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

The current implementation of List Model Version API is using preloading GORM and without limitation. This would become an issue if we have a huge list of the model versions that can exceed Postgres' max_stack_depth configuration value. In most cases, users don't need to get all model versions and filtering or limitation is needed here.

It also affects the model version UI page since it's ended up fetching all of the model versions and displaying all of them at once.

Describe the solution you'd like

In API side, it will be good to use basic SQL instead of relying to GORM. It will also be huge improvement to allow user to specify his own filter query.

In UI side, we can add pagination in model version table.