Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 2
Lurker
Lurker
Offline
Joined: Aug 2002
Posts: 2
[]Scream said:
As for trying to track down the problem with #7 and #8. On import are you setting B_Approved to 'yes' on all imported posts? The Bo_Total and Bo_Threads fields in the w3t_Boards table should only match the total # of threads/posts that have the B_Approved field set to 'yes'. If any threads/posts do not have that field set properly you may find some inconsistencies. [/]

Thanks for the update (I'm the author of the original queries; Jim is working with me on the site and posted them here).

FYI, all, I've fixed those queries to be:

SELECT Bo_Keyword, Bo_Threads, COUNT(*) AS ActualThreads FROM w3t_Boards JOIN w3t_Posts ON B_Board = Bo_Keyword WHERE B_Number = B_Main AND B_Approved='yes' GROUP BY Bo_Keyword HAVING ActualThreads != Bo_Threads

and

SELECT Bo_Keyword, Bo_Total, COUNT(*) AS ActualPosts FROM w3t_Boards JOIN w3t_Posts ON B_Board = Bo_Keyword WHERE B_Approved='yes' GROUP BY Bo_Keyword HAVING Bo_Total != ActualPosts

Unfortunately, this hasn't gotten rid of my inconsistencies: we're still trying to track down what action creates them. They show up on boards other than imported boards, so I think it's not an import issue.

Also, here's another one, which finds posts that are on a different board from their parent post or their main thread post:

SELECT t1.B_Number, t1.B_Parent, t1.B_Main, t1.B_Board, t2.B_Board as ParentBoard, t3.B_Board as ThreadBoard FROM w3t_Posts AS t1 JOIN w3t_Posts AS t2 ON t1.B_Parent = t2.B_Number JOIN w3t_Posts AS t3 ON t1.B_Main = t3.B_Number WHERE t1.B_Parent != 0 AND (t1.B_Board != t2.B_Board OR t1.B_Board != t3.B_Board)

I'm also working on a script which will find, display, and repair all of these problems. I'll post a reference to it here when I'm done, if anyone's interested.

Sponsored Links
Entire Thread
Subject Posted By Posted
UBBT Database Corruption Sniffing Scheme Jim Osby 11/10/2003 8:57 AM
Re: UBBT Database Corruption Sniffing Scheme JoshPet 11/10/2003 9:39 AM
Re: UBBT Database Corruption Sniffing Scheme Astaran 11/10/2003 11:38 AM
Re: UBBT Database Corruption Sniffing Scheme Maze 11/10/2003 1:03 PM
Re: UBBT Database Corruption Sniffing Scheme AllenAyres 11/11/2003 12:03 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/11/2003 2:28 AM
Re: UBBT Database Corruption Sniffing Scheme Maze 11/11/2003 12:45 PM
Re: UBBT Database Corruption Sniffing Scheme Tim Dierks 11/12/2003 5:06 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/12/2003 6:05 PM
Re: UBBT Database Corruption Sniffing Scheme Jim Osby 11/13/2003 9:24 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/13/2003 9:47 PM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/17/2003 7:59 PM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/17/2003 8:16 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/17/2003 8:38 PM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 12:17 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 1:16 AM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/18/2003 2:04 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 4:38 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 6:44 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 6:53 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 3:44 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/18/2003 6:47 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/18/2003 11:20 PM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/19/2003 6:32 AM
Re: UBBT Database Corruption Sniffing Scheme Tim Dierks 11/24/2003 10:28 PM
Re: UBBT Database Corruption Sniffing Scheme AllenAyres 11/25/2003 7:17 AM
Re: UBBT Database Corruption Sniffing Scheme Astaran 11/25/2003 4:01 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online 558
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 0
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)