• invalidusernamelol [he/him]
      ·
      edit-2
      1 month ago

      It's nice to be able to do something like this without having to use an ORM. Especially if you need a version of the data that's limited to a certain character size.

      Like having a replica on the edge that serves the 100 character summaries then only loads the full 1000+ character record when a user interacts with it.

      A summary of the review is also more useful than just the first 100 characters of a review.

      If the model that's used for that is moderately light I could see it actually using less energy over time for high volume applications if it is able to lower overall bandwidth.

      This is all assuming that the model is only run one time or on record update though and not every time the query is run...