Multiple choice technology web technology

How do we reuse an entity which is already fetched from database at some other Page?

  1. Calling Database again to get Entity

  2. Caching it and fetching it back.

  3. Storing the data in in-memory tables

  4. All of the Above.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Entity reuse is achieved through caching - when an entity is fetched from the database, it can be cached in memory and retrieved from the cache when needed on other pages. This avoids repeated database calls for the same data, improving performance. Calling the database again would defeat the purpose of reuse, and storing in in-memory tables is a different approach altogether.