Hi Bashar,
Greetings from Syncfusion.
We suggest
you import the data from the database using the data table. ImportDataTable method in XlsIO which has the ImportOnSave argument allows you to import data
with less memory consumption along with improved method performance by
serializing the data directly on the save method. This option is preferred for larger data
that need to be imported in a short time.
Kindly refer to the following link to know about Importing
data into Excel in the best way.
https://help.syncfusion.com/file-formats/xlsio/improving-performance#importing-datatable
Regards,
Ramya.