Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Using DE
Message
From
03/03/1999 10:19:23
 
 
To
03/03/1999 10:10:56
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00192441
Message ID:
00193571
Views:
11
>Edward,
>
>>> This thread gave many insights but it seems to me that one point was missed. It's possible to have one DE for whole application, i.e.
> you still preserve OO approach and at the same time get better speed. <<
>
>Yes, this thread gave me many insights as well. I've been away for a couple of days and when I got back my thread had exploded. I for one feel better knowing other programmers are taking the same approach for lots of reasons, and nobody is getting arrested by the code police.
>
>But I'd like to pin you down on a couple of things:
>1. By opening all tables for the whole app, you are trying to cut out an OS call, but are still opening the tables individually in private data sessions?

I use default data session only.

>2. Does this approach work for views? I define typically three views at minimum per table (primary key, surrogate key, non p-view of all records, p-view on lookup fields, and one view per foreign key). On a ten table app I could end up opening 50 or more views with your approach. Any thoughts on the applicability of your approach here?

I don't think that this approach will work well with static views (created in DBC in design time). However, if you create views programmatically in run-time having e.g. local DBC for views only, then it might work. I mean that you may launch these views individually for each form when it's necessary. I don't use this approach either, my preference is to use cursors.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform