473,513 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help on Indexing contents in file

Hi All,
I have set of data which needs to be stored in a file. The data is
classified into categories say Cat 1, Cat 2... Cat 10 each category
can have any number of entries. The program allows user to rate items
of each category as 1,2&3. Now i need to store the ratings in a file
and whenever the items of categories are listed i should show rating
along with it.
Initially file should be empty. Whenever the user rates an item then
only i need to add an entry into a file. I dono in what format i
should store the data in the file so that i can access the data
quickly. Please provide some pointers.

Thanks in advance.

Oct 8 '07 #1
3 1228

"Nash" <je******@gmail.comha scritto nel messaggio
news:11**********************@22g2000hsm.googlegro ups.com...
I have set of data which needs to be stored in a file. The data is
classified into categories say Cat 1, Cat 2... Cat 10 each category
can have any number of entries. The program allows user to rate items
of each category as 1,2&3. Now i need to store the ratings in a file
and whenever the items of categories are listed i should show rating
along with it.
Initially file should be empty. Whenever the user rates an item then
only i need to add an entry into a file. I dono in what format i
should store the data in the file so that i can access the data
quickly. Please provide some pointers.
In these days, XML (which is very eXtensible :) format is widely used.
I would suggest that, too.

But if you really need performances and speed of reading, you may use an ad
hoc optimized binary format for your file.
In fact, XML needs advanced parsing, while a "flat" binary file (designed ad
hoc) can be read and processed more quickly.

(However, it all depends on your particular problem; talking about
performances *in general* has little sense.)

Giovanni
Oct 8 '07 #2
Initially file should be empty. Whenever the user rates an item then
>only i need to add an entry into a file. I dono in what format i
should store the data in the file so that i can access the data
quickly.
Your question is too general to provide a good answer to.

How fast and frequent is "quickly"? What information do you have to
reference the data by when you want to access it? How many processes
are accessing it at the same time? Do you need concurrent access over
the network?

An XML format would be flexible, but XML is rarely fast or efficient -
though it may well be fast enough for your requirements.

Dave
Oct 8 '07 #3
On Oct 8, 9:35 am, Nash <jeevs...@gmail.comwrote:
I have set of data which needs to be stored in a file. The data is
classified into categories say Cat 1, Cat 2... Cat 10 each category
can have any number of entries. The program allows user to rate items
of each category as 1,2&3. Now i need to store the ratings in a file
and whenever the items of categories are listed i should show rating
along with it.
Initially file should be empty. Whenever the user rates an item then
only i need to add an entry into a file. I dono in what format i
should store the data in the file so that i can access the data
quickly. Please provide some pointers.
The obvious answer would be to use a data base, something like
mySQL (probably adequate here) or PostgreSQL. If that's more
than you need, and the data set fits into memory, a simple file
with attribute value pairs might be sufficient. The choice of
one or the other, or something in between, depends a lot on
factors we don't know: the size of the data set, the frequence
and pattern of accesses, etc.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
248
by: Rajendra Prasad | last post by:
Hi friends, I am new to the ASP.NET environment. During web application development, I am frequently facing the following problem. Configuration Error Description: An error occurred during the...
5
1482
by: hb | last post by:
Hi, In my ASP.Net application 'MyWebApp' , the mode="StateServer" in <sessionState> of Web.config file, and the ASP.NET State Service is set to start automatically on the server. But every...
1
2697
by: Byron | last post by:
Hey, I'm fussing around with a first attempt at using IIS6's indexing service for a web site search page. The trouble is, my site, while not using a database, is largely dynamic, with much of...
10
2962
by: Lyle Fairfield | last post by:
By default mdb etc files are not searched by Indexing Service. The default can be changed in Windows XP Pro using Group Policy. I can find no suggested way to make the change in the Windows XO...
0
4202
by: Chung Leong | last post by:
Here's a short tutorial on how to the OLE-DB extension to access Windows Indexing Service. Impress your office-mates with a powerful full-text search feature on your intranet. It's easier than you...
3
9528
by: Chung Leong | last post by:
Here's the rest of the tutorial I started earlier: Aside from text within a document, Indexing Service let you search on meta information stored in the files. For example, MusicArtist and...
8
2407
by: ash | last post by:
i'm using the indexing service and CreateRecordSet("nonsequential") in asp.......and i cant retrieve the record although the keywords is matched. Does anybody know how to solve it? thx
1
1583
by: iskyline | last post by:
hi there, i'm very new to programming with databases ... i'm coding in vbscripting because i'm trying to make a user friendly HTA for the people at work. so the basic process... search...
1
2921
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.