Use REPLACE INTO for resiliency
This commit is contained in:
parent
d4e0e409fe
commit
4c78a5245f
|
@ -907,7 +907,7 @@ $insertTemp = $_DDATA['pdo']->prepare(
|
||||||
;'
|
;'
|
||||||
);
|
);
|
||||||
$insertNotModified = $_DDATA['pdo']->prepare(
|
$insertNotModified = $_DDATA['pdo']->prepare(
|
||||||
'INSERT INTO `'.$_DDATA['tbprefix'].'crawltemp` (
|
'REPLACE INTO `'.$_DDATA['tbprefix'].'crawltemp` (
|
||||||
`url`, `url_sort`, `title`, `description`, `keywords`, `category`,
|
`url`, `url_sort`, `title`, `description`, `keywords`, `category`,
|
||||||
`weighted`, `links`, `content`, `content_mime`, `content_charset`,
|
`weighted`, `links`, `content`, `content_mime`, `content_charset`,
|
||||||
`content_checksum`, `status`, `flag_unlisted`, `flag_updated`,
|
`content_checksum`, `status`, `flag_unlisted`, `flag_updated`,
|
||||||
|
|
Loading…
Reference in a new issue