-
- Downloads
An error occurred while retrieving diff files
From Sergei Linev:
I made following modification: 1. Usage of table indexes. By default, they created only for basic tables: KeysTable and ObjectsTable. It is possible to configure TSQLFile to create indexes also for other type of tables or disable indexes at all. 2. Use of transaction. Now by default this option on and protect storage of object data to datatables. For some types of MySQL tables transaction are not supported, therefore I include in configurations possibility to setup type of table which should be used. 3. Configurations. For all kind of configuration I create small table. Configurations can be changed only when TSQLFile is created with option "CREATE" or "RECREATE". In that case configurations can be changed until first write operation. 4. Locking. I did not use "native" database locking mechnism while they are very different in MySQL and Oracle and may differ also in other SQL database. I put in Configuration table one flag, which says if database is already opened for writing by other TSQLFile instance and prevent other TSQLFile to have write access. For emergency cases one can use "BREAKLOCK" option in TSQLFile constructor to ignore that locking. This is not real locking and any other user with normal sql queries can disturb tables data, but I do not see now other solution, which may work for different databases. May be you know better solutions? git-svn-id: http://root.cern.ch/svn/root/trunk@13383 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- sql/inc/TBufferSQL2.h 3 additions, 1 deletionsql/inc/TBufferSQL2.h
- sql/inc/TSQLFile.h 44 additions, 5 deletionssql/inc/TSQLFile.h
- sql/inc/TSQLStructure.h 8 additions, 1 deletionsql/inc/TSQLStructure.h
- sql/src/TBufferSQL2.cxx 3 additions, 3 deletionssql/src/TBufferSQL2.cxx
- sql/src/TKeySQL.cxx 62 additions, 17 deletionssql/src/TKeySQL.cxx
- sql/src/TSQLFile.cxx 448 additions, 121 deletionssql/src/TSQLFile.cxx
- sql/src/TSQLStructure.cxx 13 additions, 6 deletionssql/src/TSQLStructure.cxx
- xml/inc/TXMLFile.h 10 additions, 10 deletionsxml/inc/TXMLFile.h
- xml/src/TXMLPlayer.cxx 2 additions, 2 deletionsxml/src/TXMLPlayer.cxx
Loading
Please register or sign in to comment