Skip to main content

Interview Q&A: Performance, Concurrency and Troubleshooting (139-150)

Learn Interview Q&A: Performance, Concurrency and Troubleshooting (139-150) (Phase 11 · Hibernate Interview Questions (Interview), Hibernate) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Questions 139-150 • What is the N+1 problem? What is dirty checking? What is the persistence context? What is cascading? What is orphan removal? What is optimistic locking? flush() vs commit() ? EntityManager vs Session ? How do you optimise slow queries? How do you handle bidirectional relationships? How does Hibernate generate SQL? How do you troubleshoot lazy initialization errors? • These are the senior-level questions: tie every answer to a real incident (a slow endpoint caused by N+1, a lost update fixed with @Version ).

More lessons in Phase 11 · Hibernate Interview Questions (Interview)