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

JosipZohil

Articles in the field of computer programming with VFP and .Net
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.

Read More

VFP performance in LAN environment
Posted on Thursday, March 27, 2008 at 11:29 AM
VFP performance in LAN environment

Visual FoxPro is one the fastest performing desktop and LAN-based database management system available today. But opening large tables creates a great deal of network traffic. This can be a substantial delay, sometimes beyond an acceptable length of time. In this article I present the results of the VFP speed measurement in the process of acquiring database data with different VFP9 methods. The store procedures, duplicated records and unique indexes enriched by the programmers’ knowledge of the database organization can speed up the data query. With the stored procedure we can fetches the result set of 100 records from the server about 100% faster than with the full optimized SQL command. Changing the table’s normalization and using appropriate indexes, we can improve the retrieval time for 275%.

Read More

Periodical Asynchronous Requests in VFP Forms
Posted on Thursday, March 27, 2008 at 11:25 AM
Periodical Asynchronous Requests in VFP Forms

Creating a client (VFP) application, which would be continuously calling the server for data changes on the server in asynchronous (no blocking) mode, would be difficult or perhaps even impossible to do in VFP. In this article I present a COM object in C# which downloads the data from the network computer in asynchronous mode and periodically refresh the controls on the VFP form.

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

Subscribe

RSS Feed RSS Feed

By Tag

asynchronous COM LAN Performance VFP Windows Communication Foundation

By Month

March 2008

Help

Check out the Blog FAQ.


Sponsored links

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!
Virtual File System SDK
Create your own file systems in Windows and .NET applications
PureCM Software Configuration Management
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!
Software Localization Tool Sisulizer
Localize DotNet, C++ Builder, Delphi, C/C++, Visual Basic & Java apps & html help. Try Sisulizer now
Attend WINDOWS EMBEDDED ACCELERATION WORKSHOPS
Are you ready to learn how you can bring your next-generation embedded device to market faster?


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.