hay pall i have problem in my ajax, if i have data 1000 or bigger in 1000, my data is loading
this is my code, can you'll bring solution, thank you
$query = PMB_T_MAHASISWA::query()
->with(['jalur_pendaftaran', 'program_studi', 'program_studi_2', 'program_studi_3'])
->withCount([
'document as total_document',
'document as uploaded_document' => function ($q) {
$q->where('C_DOCUMENT_STATUS', 1);
},
// Tambahan: khusus dokumen pembayaran yang sudah status = 1
'document as uploaded_pembayaran_document' => function ($q) {
$q->where('C_DOCUMENT_TYPE', 'PEMBAYARAN')
->where('C_DOCUMENT_STATUS', 1);
},
// Dokumen formulir yang sudah status = 1
'document as uploaded_formulir_document' => function ($q) {
$q->where('C_DOCUMENT_TYPE', 'FORMULIR')
->where('C_DOCUMENT_STATUS', 1);
}
]);