jOOQ is designed for writing SQL. SQL is designed to let you ask for the data you need in a shape suited for your task. Usually you will end up writing lots of different SQL queries against the same tables to cater for different tasks. There are lots of ways to simplify your code, but we don’t know what you need. Your query as it stands seems to fetch all the data from your database. That’s seldom the correct solution. Thus simplifying this will probably not be of actual help to you. If you write more about what you’re trying to accomplish and why then it will be easier to help. We don’t even have the name of your function to hint at your intention. I suggest you read the book https://theartofpostgresql.com/ to get an insight into how the database can be used to simplify your life as a developer. Alf Lervåg 22. feb. 2025 kl. 19:56 skrev Kevin Henkener <ke...@formahealth.io>:
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/jooq-user/ED66E0E7-6E3D-4572-90A0-1C4C5783285B%40lervag.net. |
- Nested Foreign Keys (PostgreSQL) Kevin Henkener
- Re: Nested Foreign Keys (PostgreSQL) Lukas Eder
- Re: Nested Foreign Keys (PostgreSQL) Kevin Henkener
- Re: Nested Foreign Keys (PostgreSQL) Alf Lervåg
- Re: Nested Foreign Keys (PostgreSQL) Lukas Eder