Click here to Skip to main content
15,905,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem on implementing index mechanism inside the code. In my problem statement it is required that users have to create index on the records to improve quick access to data. how do i implement it?
Posted

1 solution

Without knowing how you are managing your data it is difficult to guess. If it's a database then indexing is usually part of the package, but if you are required to write your own then you need to create some sort of mapping that allows you to locate a record by looking up a keyword: something like this[^] perhaps.
 
Share this answer
 
Comments
Member 8168059 24-Nov-11 8:59am    
i have created text files which act as the database. i have also managed to create a file that reads from this text files and displays information inform of a table. Now it is required that, users who would be searching records from the file; have to create indexes on the particular records. Now that am to program this, how am i going to implement it?..Like that of SQL server..
Richard MacCutchan 24-Nov-11 11:32am    
Only you can answer this question, as it depends on the type and the amount of data that needs to be processed. If you have large amounts of data and multiple clients who need to access it, then some sort of database server would seem to be the best answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900