Amend API to use IDs rather than circular imports causing unnecessary overheads #3856
marksie1988
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the API returns linked records, for example:
User
By doing this it has a performance hit by pulling data in circles, instead, move to using the IDs any sub records, then if the user requires the additional records these can be requested.
Doing this will reduce the size of responses, improve performance, more flexible and extensible, separation of concerns and remove circular import hell that currently happens.
for example:
User:
In most situations you likely only want the main record and not all of the subsequent records, adding an unnecessary API overhead.
This also causes issues with other programming languages specifically Python as there are so many circular imports.
Beta Was this translation helpful? Give feedback.
All reactions