Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Filtered Grid still slow?
Message
From
24/06/1998 08:55:46
 
 
To
23/06/1998 17:19:44
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Conferences & events
Miscellaneous
Thread ID:
00110946
Message ID:
00111193
Views:
27
>>>Hi All.
>>>
>>>I just want to gripe about the fact that filters and grids are still apparently a problem in VFP 6. I think it really stupid that I can open a large table and set a filter and browse brings up the data in seconds while a form with the same table in its data environment with the same filter and a grid connected to the same table takes minutes.
>>>
>>>And don't anyone tell me to use a view. I already know that and that is not the only answer to application development. If it was, the BROWSE command would never have been Rushmore aware and Rushmore optimization would never have been invented and LAN based applications would never have been made without a database server backend.
>>>
>>>Thanks
>>>
>>>Mike Yearwood, GE Capital Consulting
>>
>>Filter is actually not a problem but just a bad xbase habit. Grids themselves don't constitute any problems. I'm not going to tell you about views as you requested, but what about simple cursor? Also, there are other ways to speed up grids using UDF-ed columns pointing to lookup tables.
>
>I'll never agree that a filter is a bad habit. It's conceptually no different from a SQL where clause. Its only different from an implementation perspective.
>
>The simple cursor excludes the functionality of the views, so that's no good. The UDF-ed columns showing related data has some merit, but ultimately could result in a selection of all of the PK's from the data source and/or the data would be read-only in the UDF's which is also not acceptable.
>
>Am I the only one who is disappointed that we can't do with these new tools what Foxpro 2.6 could do so easily? We're not supposed to lose functionality as we improve. Imagine improving your car so you couldn't drive it as you'd like.
>
>Thanks
>
>Mike Yearwood, GE Capital Consulting

You probably missed some points. Firstly, there is conceptual difference between filter and Select-SQL, just look at new NOFILTER clause which exemplifies the difference. Also, cursor doesn't exclude functionality of view completely: it's always up to you to bring data changes back to table programmatically, i.e. you will get some query speed at expense of some programming efforts. The last thing is that UDF column is read-only just from plain perspective. However, you can always make it editable doing your interface just a little bit more sophisticated (e.g. by applying right-click shortcut menus).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform