Write REST APIs using Java and Spring to
Here are the tables and their fields:
-- id: int
-- isbn: string
-- title: string
-- author: string
-- year_published: timestamp
-- id: int
-- name: string
-- description: string
-- book_id: int
-- category_id: int
You can use postgres, mysql or any other sql database of your choice. If you have any questions please do not hesitate to ask. Please document any assumptions you make.
BONUS:
If there were 10 million entries in the book table, how would your code perform? what would you do differently to ensure it performs well?