Skip to content

How to achieve accessing complex relational model data? #16075

Answered by niden
JMoodyFWD asked this question in Q&A
Discussion options

You must be logged in to vote

My 2 cents

The structure is very nicely done, normalized. More on improving this below.

To get the data as efficiently as possible you will need to load the minimal amount of data that you want to display per action i.e. user clicks Inbox -> need to show all emails and who it was sent to.

This way you can query only the mail thread and recipients and display that information. When a user clicks on a mail thread, you can further go to display each message and whether it has attachments or not. You get the point. You minimize queries based on the amount of information you need to display. Some minor reorganization might help you there also, for instance storing the number of attachments per…

Replies: 1 comment 4 replies

Comment options

niden
Aug 26, 2022
Maintainer Sponsor

You must be logged in to vote
4 replies
@JMoodyFWD
Comment options

@niden
Comment options

niden Aug 29, 2022
Maintainer Sponsor

@JMoodyFWD
Comment options

@niden
Comment options

niden Aug 29, 2022
Maintainer Sponsor

Answer selected by JMoodyFWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants