phong-hopee's avatar

How to render 200 toeic questions most effectively?

I have a website (Laravel blade) to practice for the TOEIC test, with 200 questions for the test including 2 parts: listening and reading. Each time a user participates in a test, they will interact with each question (total 200 questions), so how should I query and render data to optimize it as much as possible (I have two tables: tests -> containing tests and questions->containing questions related to the test). Thanks for reading.

0 likes
3 replies
tisuchi's avatar

@phong-hopee My opinion is to use relationships and then load your content with pagination. That should be a pretty standard approach.

1 like
phong-hopee's avatar

@tisuchi Thank you for the answer. If so, I probably have to render each question. Is that too many requests?

tisuchi's avatar

@phong-hopee Sorry, maybe I don't get your query properly!

Can you explicitly show your current structure and tell us what exactly you want to achieve?

Please or to participate in this conversation.