Current area: HOME -> Blogs -> josip1's Blog -> Read Post

Improve VFP data retrieval with WCF

Posted on Thursday, March 27, 2008 at 11:31 AM
Improve VFP data retrieval with WCF

Windows Communication Foundation (WCF) enables us to create distributed architecture and use Visual FoxPro (VFP) as a client/server system executing the operation on the server (backend). With the WCF client we can download the data from the server in asynchronous (non blocking) mode. The measurement in this article show us this can be done much faster then downloading the data with VFP functions or oledb data adapters. With WCF, we can take advantage of parallel (asynchronous) operation and distribute the processing of data between the client and the server. The retrieved data can be presented in VFP or Net (Windows) controls. In the download of this article is the code of four projects: WCF service, WCF client, COM object and VFP client. We present the code and the measurement of retrieving the data from the server in the form of a data table, a dataset, a strong typed collection and the dbf file. The fastest is the retrieve and transport of the dbf file binded to the VFP grid, on the second place (24%slower) is the strong typed Net collection binded to the Net grid, the laziest (30% slower) is the Net data table binded to the windows Net grid. Except for very small record set, there is a big time gap (almost 100%) between the direct VFP data retrive over the local network and using the WCF service.

Author: Josip Zohil, Koper, Slovenia, Josip.Zohil1@guest.arnes.si

Comments
No comments posted yet.


Sponsored links

ProjectLocker - Software Quality on Demand
Secure Subversion and Trac Hosting for as low as $2.50/month. No-risk trial. Sign up today!
Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
PureCM Software Configuration Management
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!


Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.