Most databases are susceptible to the N+1 problem, with the exception of embedded databases like SQLite. If you're curious why SQLite doesn't suffer from the N+1 problem, watch this video and learn why.
https://mycelial.com/#newsletter
/ mycelial
https://github.com/mycelial
/ discord