HomeInterview QuestionsIf we are going to display 10,000 records at a tim…

If we are going to display 10,000 records at a time, what would we do?

🟡 Medium Conceptual Junior level
1Times asked
Apr 2026Last seen
Apr 2026First seen

💡 Model Answer

Displaying 10,000 rows in a single view is impractical. Use pagination or infinite scrolling with lazy loading. Server‑side pagination fetches only the current page (e.g., 50–100 rows) via an API that accepts page number or cursor. On the client, use virtual scrolling libraries (React‑Window, Angular CDK Virtual Scroll) to render only visible rows, reducing DOM size. Add filters and sorting on the server to avoid loading all data. If real‑time updates are needed, use websockets or SignalR to push changes to the current page. This approach keeps the UI responsive and reduces memory consumption.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500