Hi,
Background:
I have written a Call Logging and Reporting System using PHP that integrates
with an existing MS Access Database. The information in the database is all
held in flat tables with no relationships (I don't know why they did this)
and the users are currently using VBA forms to enter info into the database,
this meant that each time someone wanted to do a report of the call's
recorded over the last week that they would have to go throught the database
themselves and compile a report (e.g. re-type the info into excel or
something). I'm using PHP/GD to generate bar/pie charts and reports in HTML,
PDF and ms excel formats (well a CSV file).
Question:
Each call needs to be allocated a unique number, the way I'm doing this at
the moment is using SQL to look through the database and find the last
record and then incrementing it. The problem is that at the moment there are
over 40,000 records in the database and its taking roughtly about 11 seconds
for that call logging PHP page to load. Is there anyway of improving this
(other than increasing memory/processing power on the server side).
Thanks,
Tony.
Background:
I have written a Call Logging and Reporting System using PHP that integrates
with an existing MS Access Database. The information in the database is all
held in flat tables with no relationships (I don't know why they did this)
and the users are currently using VBA forms to enter info into the database,
this meant that each time someone wanted to do a report of the call's
recorded over the last week that they would have to go throught the database
themselves and compile a report (e.g. re-type the info into excel or
something). I'm using PHP/GD to generate bar/pie charts and reports in HTML,
PDF and ms excel formats (well a CSV file).
Question:
Each call needs to be allocated a unique number, the way I'm doing this at
the moment is using SQL to look through the database and find the last
record and then incrementing it. The problem is that at the moment there are
over 40,000 records in the database and its taking roughtly about 11 seconds
for that call logging PHP page to load. Is there anyway of improving this
(other than increasing memory/processing power on the server side).
Thanks,
Tony.
Comment