glom r1985 - in trunk: . glom/libglom



Author: murrayc
Date: Fri Mar 13 15:41:19 2009
New Revision: 1985
URL: http://svn.gnome.org/viewvc/glom?rev=1985&view=rev

Log:
2009-03-13  Murray Cumming  <murrayc murrayc com>

* glom/libglom/connectionpool.cc: connect(): Update the meta store for 
just the data types and the table names, instead of everything. This is 
slightly faster. This needs libgdamm from svn.
More about the libgda meta store speed here:
http://bugzilla.gnome.org/show_bug.cgi?id=575235

Modified:
   trunk/ChangeLog
   trunk/glom/libglom/connectionpool.cc

Modified: trunk/glom/libglom/connectionpool.cc
==============================================================================
--- trunk/glom/libglom/connectionpool.cc	(original)
+++ trunk/glom/libglom/connectionpool.cc	Fri Mar 13 15:41:19 2009
@@ -372,9 +372,13 @@
       else
       {
         //Allow get_meta_store_data() to succeed:
-        std::cout << "DEBUG: Calling update_meta_store() ..." << std::endl;
-        m_refGdaConnection->update_meta_store();
-        std::cout << "DEBUG: ... update_meta_store() has finished." << std::endl;
+        //Hopefully this (and the update_meta_store_for_table() calls) is all we need.
+        std::cout << "DEBUG: Calling update_meta_store_data_types() ..." << std::endl;
+        m_refGdaConnection->update_meta_store_data_types();
+        std::cout << "DEBUG: ... update_meta_store_data_types() has finished." << std::endl;
+        std::cout << "DEBUG: Calling update_meta_store_table_names() ..." << std::endl;
+        m_refGdaConnection->update_meta_store_table_names();
+        std::cout << "DEBUG: ... update_meta_store_table_names() has finished." << std::endl;
 
         // Connection succeeded
         // Create the fieldtypes member if it has not already been done:



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