dataset - Best method of frequently storing, searching and modifying a large data set in Delphi -
In order to create and store data, what will be the best way in Delphi, which will often be searched and modified?
Actually, I would like to write a function that searches for an existing database of telephone numbers and tracks how many telephone numbers are used, the first date to be used and the latest The date is used. The database that is being searched is a log of the commands originally provided, which contains the telephone number used to do in order. It can not be easily inquired for a SQL database or some such thing (this is an old story), so I need to create a way to get this information (finally output to text file).
I am planning to create a record that includes a phone number, two dates, and a number of times used, and then add a record for a dynamic array for each telephone number. I then search the entry by array, entry for each record in the database, to see if the phone number for the current record is already in the array or not. Then to update or record as needed.
It seems that it will work, but as there are thousands of entries in the database, this can not be the best way, but there is no better way to do a slow and inefficient work, which I Can I execute on the database?
Someone has suggested that instead of using Array, use a MySQL table to keep track of numbers, and then query for each number, every database record, even though it is also more overhead looks like!
Thank you very much for your time.
I can register aggregates in fully disconnected TClientDataset (CD), and the values Updating like you get them from looping. If Breith can be sorted by telephone number then it is better then use the data on the CD to generate the report.
(If you go this way, then I suggest that, with the best accessories from here)
Comments
Post a Comment