Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOD, OOP, Client/Server, SQL, performance
Message
From
05/10/1998 19:52:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
OOD, OOP, Client/Server, SQL, performance
Miscellaneous
Thread ID:
00144075
Message ID:
00144075
Views:
55
The title for this message covers much ground, but I´m actually trying to work out a design/programming style for VFP which allows for a full object orientation, even though you may work in a Client/Server ambient, with SQL, and wishing to keep VFP's speed.

Has anybody read/seen anything about this?

I've found many articles dealing with the "persistance" problem; how objects can "save" themselves in a RDB such as VFP or SQL Server. But, the kind of programming solutions you use in pure OO languages (such as Smalltalk) don't mesh nicely with SQL or (even less) with a Client/Server situation. For example, working your way through a "Collection", and for each object found, traversing yet another collection, and so on, is what you can usually do in just one SQL statement. And further on, if those objects (and collections) were actually on disk (and accessed only through a Client/Server interface) you would have about a zillion requests to the Server instead of a single SELECT. And I place more trust on my ability to write correct SQL than to work with links, collections, loops, and so on; it´s just a matter of shorter code, and "saying what I want, and no how to get it".

I´m quite convinced that OO is *the* way to go, but I don´t want to lose performance. Academic examples (those which assume that all objects are in memory, and disks simply don´t exist) can afford doing their logic in slow, inefficient ways, since all their data is in memory, anyway. But when you deal with large data sets, and furthermore access them only via Client/Server coding...

So, once more... has anyone seen anything about this kind of programming? Or, even better, done anything of this kind?

Thanks!!
Next
Reply
Map
View

Click here to load this message in the networking platform