How to display a lot of data (40.000+) into a select dropdown?
Do you have any input?
This is the first time I've executed this much data, I don't have experience or good query management yet. Can you guys help me?
If I limit it, of course the data will appear. But if I display everything, the web page will take a very long time to load.
5 Replies
Hi there, maybe use this for your second select: https://filamentphp.com/docs/3.x/forms/fields/select#integrating-with-an-eloquent-relationship
with ->searchable
your whole select is wrong. there shouldn't be
callable $get
, don't know where you got that from. chatgpt?
when doing pluck you also must return the idcallable $get
is there, it's working.. actually it's a v2 thing IIRCshouldn't be used in v3