Optimization in ShallerDBProcessor

main
Inga 🏳‍🌈 15 years ago
parent 83e810e253
commit 0399876d55
  1. 5
      ImportConsole/ShallerDBProcessor.cs

@ -173,7 +173,7 @@ namespace FLocal.ImportConsole {
if(inserts.ContainsKey(postId)) { if(inserts.ContainsKey(postId)) {
Console.Write("-"); Console.Write("-");
} else if(Config.instance.mainConnection.GetCountByConditions(Post.TableSpec.instance, new ComparisonCondition(Post.TableSpec.instance.getIdSpec(), ComparisonType.EQUAL, postId.ToString())) > 0) { } else if(Config.instance.mainConnection.GetCountByConditions(Post.TableSpec.instance, new ComparisonCondition(Post.TableSpec.instance.getIdSpec(), ComparisonType.EQUAL, postId.ToString())) > 0) {
Post post = Post.LoadById(postId); /* Post post = Post.LoadById(postId);
if(post.title.StartsWith("%") || post.title.StartsWith("Re%3A") || post.body.StartsWith("%") || (post.thread.firstPost.id == post.id && post.thread.title.StartsWith("%"))) { if(post.title.StartsWith("%") || post.title.StartsWith("Re%3A") || post.body.StartsWith("%") || (post.thread.firstPost.id == post.id && post.thread.title.StartsWith("%"))) {
string title = data["Subject"]; string title = data["Subject"];
string body = data["Body"]; string body = data["Body"];
@ -205,7 +205,8 @@ namespace FLocal.ImportConsole {
Console.Write("+"); Console.Write("+");
} else { } else {
Console.Write("-"); Console.Write("-");
} }*/
Console.Write("-");
} else { } else {
int localMain = int.Parse(data["Local_Main"]); int localMain = int.Parse(data["Local_Main"]);
int main = int.Parse(data["Main"]); int main = int.Parse(data["Main"]);

Loading…
Cancel
Save