Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Function SQL join
 
Notifications
Clear all

Function SQL join

2 Posts
2 Users
0 Reactions
3,349 Views
(@djackjack)
Posts: 49
Active Member
Topic starter
 
[#986]

In your application, Have you developed a function to perform SQL joins between tables to optimize treatment and to facilitate information retrieval? And if yes, what is this and how does it function?


 
Posted : 27 Feb 2013 15H29
(@babynus)
Posts: 14952
Member Admin
 

Yes and no.

In fact there is no specific join function for SQL queries, such as the ones you can find on hibernate.
The framework bring a more simple and pragmatic approach :
Considering that joining tables is mostly used to retreive a name from an id through a foreign key, all is done in PHP scripts. Only main table is retrieved, and id->name conversion is done throught a devoted function highly using cached data. This way queries are kept simple and performance is assumed.

It may not fit all situations, but answers all need for Project'Or RIA.

One exception is the PlanningElement table : for higher performance, it has been de-normalized, copying required names in the table. The framework assumes the consistancy of these names.


 
Posted : 28 Feb 2013 1H50
Share:

Scroll to Top