From 0399876d55de5550ae8dda250af9414bb6e8e815 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sat, 10 Jul 2010 13:13:38 +0000 Subject: [PATCH] Optimization in ShallerDBProcessor --- ImportConsole/ShallerDBProcessor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ImportConsole/ShallerDBProcessor.cs b/ImportConsole/ShallerDBProcessor.cs index a287e7b..83f999d 100644 --- a/ImportConsole/ShallerDBProcessor.cs +++ b/ImportConsole/ShallerDBProcessor.cs @@ -173,7 +173,7 @@ namespace FLocal.ImportConsole { if(inserts.ContainsKey(postId)) { Console.Write("-"); } 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("%"))) { string title = data["Subject"]; string body = data["Body"]; @@ -205,7 +205,8 @@ namespace FLocal.ImportConsole { Console.Write("+"); } else { Console.Write("-"); - } + }*/ + Console.Write("-"); } else { int localMain = int.Parse(data["Local_Main"]); int main = int.Parse(data["Main"]);