I'm new to datatables and javascript. I'm using nodejs and oracledb. I have more than 2 million data in a table, it's not loading on the page so I set a 5000 row limit:
SELECT * FROM DATA_TABLE WHERE ROWNUM < 5000
Here is the sample datatable
I want to export all data in csv format but now I have 5000 row limit. Can I change the source of the .csv button's data? How can I do this? Is there any other way to do this?
I tried Server-side processing and fetching it with ajax but it didn't work or I couldn't. Can I use Fetch API instead of ajax here?
$('#example').DataTable({
processing: true,
serverSide: true,
ajax: '/data-source',
});