Improving the performance of Jpa image load time

I have an application which has to handle a list of objects (retrieved from the database using JPA) which contain an image serialized. The issue is that when I get around 50 instances of this object stored on the database, it becomes quite slow to load 50 pictures from the database (~5 seconds), which becomes annoying to the user. Is there a way to set this column from the database to a lazy initialization? Or should I create a separate object to carry the image, and reference it using an ID? Thanks for your help.

以上就是Improving the performance of Jpa image load time的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准