Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
3 tier and performance
Message
From
01/07/1999 03:02:57
 
 
To
30/06/1999 13:42:51
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00235905
Message ID:
00236327
Views:
15
>You could bypass the business layer and directly to the data layer to get the records you want. That will give you a performance edge. But it will also defeat one of the major benefits of 3-tiers design: module independancy. What if there is a new business rule that forbids certain records? What if you change the data layer (from VFP to SQL server for example)? You will not only have to modify the business and/or the data layer, but the interface layer also.
>
>I would recommend bypassing the business layer only in rare occasion, where the speed is very important. But be sure to document this behavior.
>
>>I am on the start of the long way of 3 tier programming.
>>I am currently rewrite one of my prev. app.
>>If I understand the 3 tier prog. model. presentation tier can only communicate directly with business object and so, mustnot acces to database tier.
>>But what if the presentation tier want to get a list of some records. (e.g. a form with a list of invoices). Should it ask the business object to pull the list into a cursor and give back the alias of the cursor? Im am afraid, that it slows down the app. And how to use a grid with its built-in sql capacity? Or is there a better algorythm?


Sear Sylvain,

I donnot really want to bypass the business layer. I am only curious how to pull data through this layer in the most effective way (i.e. speed)

BB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform