Ask a Question related to Coldfusion Database Access, Design and Development.
-
YogeshM #1
How to optimise query?
Hi,
I'm currently running a daily schedular that copies records from a Microsoft
Access database and dumps them into a MySQL db. There are 2 options actually, 1
where only the latest records from the Access db are appended to the MySQL db,
and 2nd, where the users want to re-interface all the records.
The problem is, there are more than 30,000 records in the Access db (and it's
expanding day-by-day) and it's taking more than 3-5 mins to select all and dump
it into the MySQL db and the users are complaining that this is much too slow.
Is there a way to do this faster? Any way to optimise the query? Any tool that
already exists for that?
I would also like to show a progress bar while the program is executing. Could
somebody please explain to me how to do this?
Thanks and regards,
Yogesh Mahadnac
YogeshM Guest
-
Query of Queries on query New type query
In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could... -
How to best optimise gradients with text?
Whats would be the best solution to optimising an image where the backgrund is a gradient (best optimised as jpeg) and there is text on top, which... -
Optimise HD?
> TidBITS#686/30-Jun-03 Hmmm, mebbe your Mac doesn't go any faster, but what about disk life? If the head's not thrashing back & forth between... -
Best practice to optimise big updates (repost, rewritten with example)
George wrote: Right! and we're still discussing it over there. -
How to optimise many updates on 1Mio rows?
I need to perform many update queries on the same table sporting 1 Mio rows. It is not possible to do all updates in one query, I definitely need... -
Neculai Macarie #2
Re: How to optimise query?
YogeshM wrote:
A few tips:> Hi,
>
> I'm currently running a daily schedular that copies records from a
> Microsoft Access database and dumps them into a MySQL db. There are 2
> options actually, 1 where only the latest records from the Access db
> are appended to the MySQL db, and 2nd, where the users want to
> re-interface all the records.
>
> The problem is, there are more than 30,000 records in the Access db
> (and it's expanding day-by-day) and it's taking more than 3-5 mins to
> select all and dump it into the MySQL db and the users are
> complaining that this is much too slow.
>
> Is there a way to do this faster? Any way to optimise the query? Any
> tool that already exists for that?
- if you have a lot of indexes on the MySQL table disable them before
inserting the rows and enable them after;
- try using MySQL's extension to INSERT:
INSERT INTO table(title)
VALUES ('t1'), ('t2'), ....;
A very crude sample:> I would also like to show a progress bar while the program is
> executing. Could somebody please explain to me how to do this?
<div style="width:400px;"><div id="progress" style="width:0px;"></div></div>
and cfflush these js bits every 100 records or so:
<script>
document.getElementById("progress").style.width = (#CurrentRow#*400) /
#RecordCount# + "px";
</style
--
<mack />
Neculai Macarie Guest



Reply With Quote

