@Tray2 hello Tray, thank you for your response, I've thought of partitioning which was my last resort, I thought when doing a query like a search upon all your data, ie all your partitions, either run several queries and union them or join them all and run one query, in fact I thought laravel vapor would do something like this by default, yet it has a lot of edge cases such as, you can not sort easily across multiple tables so this really limits the usage to the application.
In response to your question we're trying to build a social media platform like Instagram, as an example the posts in Instagram always are available and old posts don't get deleted, it has millions of users and billions of records.
What if we use Mongo DB instead, since Mongo DB in nosql and has a non official but pretty good driver for laravel, it could be used but I'm not sure this is the first time I've ever considered using a nosql database.
I've read multiple articles mentioning nosql are used in these cases, yet I don't know if that driver would even work on the serverless technology, that's why I really need your opinion, I'm kind of lost here.
By the way I was talking about this library :
https://github.com/jenssegers/laravel-mongodb