madaley1 / nova-library

0 stars 0 forks source link

Implement parsing of Select & MultiSelect #17

Closed madaley1 closed 2 months ago

madaley1 commented 3 months ago

This can get complex. In large Libraries this could cause significant slowdown if it is done when data is retrieved. Since JavaScript doesn't have a true Async in that it doesn't actually perform two separate tasks at once I don't think simply making it async would be sufficient. Maybe making an API endpoint could help, adding a dedicated table would add complexity that I don't know is necessary. Of course it only needs to be parsed once per generation of the redux store as I can store it there and manipulate as necessary. I should learn more about persistence too, although with data that is changing the way this will be I'm not sure using something like localStorage is wise, as it would need to be cross-referenced and that would require some level of refetching and reparsing which would be unnecessary and cause slowdown on every load, which is less than optimal.

madaley1 commented 3 months ago

In my prior note I think I was getting too ambitious. Right now I need something that works, everything can be improved upon later and it does not need to be perfect the first time.

Requirements:

It's possible I will never require a more complex implementation as I may never have a library so large that it nominally hangs when aggregating the unique values. If it does start to hang I can figure that out when I get there, but first let's get the basics done before adding complexity.

madaley1 commented 3 months ago

This will be part of the branch created for https://github.com/madaley1/nova-library/issues/13