Ideas to clean & make faster

Ah. Both are probably right. :slight_smile: Chocolic’s script doesn’t update any records modified less than twenty-four hours previously, so it’s not due to notice any changes for a couple of hours yet (as I write). I’ll try it again later.

I like the fact that sqlite3 can bulk-transfer values from one set of fields to another and can bulk-compare them to pick out any changes. That’s got to be better than the script checking records one-by-one.

An interesting read. :slight_smile:

No. It didn’t notice any price drops this time either ” unless the prices have gone up again!

I think the problem this time is that while “new” prices are only transferred to the Old_price fields when they’re over a day old, they’re overwritten anyway by the data from the Web pages. So if the script’s run less than a day after the previous time ” as when I ran it last night ” the old “new” prices are lost.