Export raw data conditions

Need a clarity on raw data export:
Under what conditions raw data export get downloaded directly?
Under what conditions raw data export is sent on email?

Is there a possibility that this export process is unified, i.e under any condition either the data gets downloaded directly or is sent to email?

@Raj_Bhartiya How a dataset is exported depends on the file size. If the count of records is greater or equal to 500 then we do an export from backend (email). For less than 500 records, the export happens directly.