• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

How do I manipulate (write and read) a xml file in VB6?

Hi All,

My problem is...

I work for Retailing Management System. Front end is VB6, back end SQL Server 2005. My application has an interface called Item Fetch to select an item from a item list. The Item Fetch interface fetches all 20,000 items from the db server every time an item is selected. Around 50 sales counters are accessing the db server simultaneously. So the db server is over loaded, and the performance of my application gets reduced.

My plan is...

Fetch all 20,000 items from the db server only once, and save those in a file (preferably xml file) in the local machine. So that my fetch interface will load items from the local file. Thus the db server is free from item fetch queries.

My question is...

1. Does my idea sound good? If not, plz give your suggestion.
2. Which file format should i use to save around 20,000 items? xml or any other format? Hopefully csv (comma separated values) may not be suitable since item desc may have commas.
3. How do I manipulate (write and read) a xml file in VB6?

Thank you in advance.
Regin T.
0
Fi-es
Asked:
Fi-es
  • 3
  • 3
1 Solution
 
sasi_kmrCommented:
increase the buffer at the application and database level and see the performance.

thanks,
$a$i
0
 
DhaestCommented:
I would say: redesign your application.
- What's the use of querying (and displaying) 20.000 items ? Aren't these divided into several itemgroups ?
- Do you use paging on your gui ?
- Why not limiting the search to x-number of items ?
0
 
Fi-esAuthor Commented:
I load all items to a recordset, and then filter items based on the filter criteria. Since all items are in the recordset, the user can smoothly filter the items on keypress. I use filter property of recordset. Here, i want to load all items to the recordset at the beginning.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
DhaestCommented:
>> Here, i want to load all items to the recordset at the beginning

Is your program used by multiple users ? Do they add/delete/update items ? If so, how does your program knows that an item has changed ?

(if you really want to load it once in your program, declare the recordset as public variable and load it in the startup of your program)
0
 
Fi-esAuthor Commented:
Hardly the list of items changes. Refresh button enables the user to refresh the items if required.

How do I manipulate (write and read) a xml file in VB6?
0
 
DhaestCommented:
VB6: XML and How To Read It With Visual Basic
http://www.nonhostile.com/howto-xml-vb6.asp

Getting Started with VB 6 and XML
http://www.informit.com/articles/article.aspx?p=25084

Creating XML documents with the DOM in VB6
http://articles.techrepublic.com.com/5100-10878_11-1044759.html
0
 
Fi-esAuthor Commented:
thank you Dhaest
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now