vfp 程序的 dotnet json webservice 来传递数据作为解决方案?
我正在寻找一种解决方案,将大型数据集从 Visual FoxPro(vfp) 传递到 .net Web 服务。数据是个人信息,例如姓名、地址、电话号码等,还有 7 列包含 ID 和其他参数。
我们尝试将光标定位到 xml 数据集,但文件大小非常大。所以我的想法是传递json格式的字符串。我们需要容纳最多 100 万行数据,
我在网上找到了这个用于 json webservice 的解决方案。
http://www.codeproject.com/KB/webservices/JsonWebServiceJQuery.aspx这可以适用于这么大的数据集吗?有没有更适合我的情况的东西
我找到了这个 VFP 类 http://www.sweetpotatosoftware.com/spsblog/2008/12/19 /VisualFoxproJSONClassUpdate.aspx 它承诺执行所需的操作,将其转换为 json 格式。这应该有效吗?我还缺少什么吗?
编辑: 事实证明,将 json 字符串解析回 vfp 对象是一个非常耗时的过程,我们将使用 xml 数据...
I am searching for a solution to pass a large dataset from visual foxpro(vfp) to a .net web service. The data is personal information such as names, address, phone numbers, etc. with 7 more columns containing id's and other parameters.
We tried cursor to xml dataset but the file size is very large. So my idea is to pass json formatted string. We need to accommodate up to 1 million rows of data
I found this solution on the web for json webservice.
http://www.codeproject.com/KB/webservices/JsonWebServiceJQuery.aspx Can this work for such large datasets? Is there anything better suited for my situation
I found this class for VFP
http://www.sweetpotatosoftware.com/spsblog/2008/12/19/VisualFoxproJSONClassUpdate.aspx
which promises to do what is needed as far as converting to json format. Should this work? Is there anything else I am missing here?
Edit:
As it turns out parsing a json string back to vfp object is a very time intensive process and we will be using xml data...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试推送或拉取一百万条数据记录(例如描述)必然会导致性能问题、占用资源、坏数据包/数据等......我建议将数据分成较小的块,因此如果有任何问题,您可以在发现记录 999,990 是否失败并需要再次发送整个内容之前重新提交给定批次。
Trying to push or pull up to a million records of data such as describing is bound for issues of performance, tying up resources, bad packets / data, etc... I would suggest pushing the data out in smaller chunks so if any problems, you can re-submit a given batch before you find out if fails on record 999,990 and need to send the entire thing again.