SAP interview question

Write an API to fetch 10000 data from a database at once.