[anjuta/sdb-core-trans] symbol-db: removed last_insert and timing drops to 1.8 seconds.



commit 3af5a1e1b395a4d4bde71d3adba1ebcfca35b801
Author: Massimo Corà <mcora src gnome org>
Date:   Fri Jul 9 00:35:02 2010 +0200

    symbol-db: removed last_insert and timing drops to 1.8 seconds.
    
    Without the last_inserted information we drops to 1.8 seconds, but still 2+ times
    slower than SQLite native C apis.

 plugins/symbol-db/benchmark/libgda/libgda.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/symbol-db/benchmark/libgda/libgda.c b/plugins/symbol-db/benchmark/libgda/libgda.c
index d8a6eda..077ff9f 100644
--- a/plugins/symbol-db/benchmark/libgda/libgda.c
+++ b/plugins/symbol-db/benchmark/libgda/libgda.c
@@ -265,7 +265,7 @@ insert_data (GdaConnection *cnc)
 		/* execute the query with parametes just set */
 		gda_connection_statement_execute_non_select (cnc, 
 														 (GdaStatement*)stmt, 
-														 (GdaSet*)plist, &last_inserted,
+														 (GdaSet*)plist, NULL,
 														 NULL);
 
 		g_strfreev(tokens);
@@ -273,8 +273,6 @@ insert_data (GdaConnection *cnc)
 		 * on hashtable'll be freed
 		 */
 
-		if (last_inserted)
-			g_object_unref (last_inserted);
 	}
 	
 	elapsed_DEBUG = g_timer_elapsed (sym_timer_DEBUG, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]