Here's my problem, I imported alot of data from postnuke when we started using drupal. All the nodes came in with nid's of 1000 and up. Everything worked just fine until recently when we got to a thousand nodes, at which point the site locked up and quit accepting new content. To make matters worse I have a problem with the node table now as well (might be related, but it certainly might not). Anyhow browsing about with phpmyadmin shows these two errors on the node table:
PRIMARY and INDEX keys should not both be set for column `nid`
More than one INDEX key was created for column `status`
Do I need to change something in node_counter? I've got plenty of backups going back for months, so I don't mind breaking some things, but I'm unsure where to start kludging.
I'll paste the script I used for importing here. It is modified code from another post somewhere here on drupal, I wish I'd documented it all better, but I'm just lucky I could find this script still lingering about on my server.
# Story Migration
####
INSERT INTO newDrupalInstallDB.node (nid, vid, type, title, uid, status, created, comment, promote, moderate, changed)
SELECT pn_sid+1000,
pn_sid+1000,
"story",
CASE WHEN NOT strcmp(LEFT(pn_title,3),"_TP") THEN substring(pn_title,4) ELSE pn_title END,
2,
1,
unix_timestamp(pn_time),
0,
1,
0,
unix_timestamp(pn_time)