I have a use case where I want to retrieve just 1 record from a table based on how they are sorted, so I implemented the Take parameter of the TableQuery and added the option to disable pagination so it only retrieves the first page of items.
Also, the += operator is quite slow when dealing with large arrays, so I reworked that section as well so it just outputs instead of storing the data to a variable and then outputting.
I have a use case where I want to retrieve just 1 record from a table based on how they are sorted, so I implemented the Take parameter of the TableQuery and added the option to disable pagination so it only retrieves the first page of items.
Also, the += operator is quite slow when dealing with large arrays, so I reworked that section as well so it just outputs instead of storing the data to a variable and then outputting.