Symfony 4 EntityType::class multiple and lots of rows

Hello!
I am trying to load a selec2 in symfony 4 with EntityType class that returns more than 9000 results, is there any tutorial that could help me to do that?

Thank you very much!

Miguel Angel