Hi.
I'm having a question related to design. Let's assume that we have 2 tables in the database:
- Document_properties
--> fetching this table is fast as the size of the contained data is small.
- Document_data
--> fetching this table is extremely slow as the contained documents are very big, lets say >100MB. So it takes a long time to transfer them from the database server to the client.
NOT every document_property has document_data.
Now I want to load all document_property entities with the information, if a document_data is linked to it. Something like this:
SELECT dp.*, hasData = dd.id FROM document_properties dp
LEFT OUTER JOIN document_data dd on dp.id = dd.refId
Whats the best way to do that? Is it possible to tell LLBLGen that a specific field shouldn't be fetched from the db (the actual document data in this case)? Is there a field that can be prefetched that just checks the existence of a related entity?
Thanks in advance for your help.
Cheers.