8
Jun/100
Jun/100
7 rules to work with highest performance in SQLite databases in Adobe AIR/Flex
This article shows 7 rules how to get out the most of your SQLite application in AIR:
- Create VO’s (value objects or classes) for each query extending a VO with contains at least the “ROWID”
- Always use SQLStatement.itemClass and to query for an object – it automatically casts the
- Use the “AS” alias in your SQL queries (e.g. SELECT count(name) AS “numberOfNames”) to fit it to your value object.
- Use SQLConnection.columnNameStyle = SQLColumnNameStyle.SHORT as possible.
- Try to avoid the same name in different tables (which has to be joined at one point)
- Use SQL transactions: Start with sqlConnection.begin(); continue with “INSERT INTO (‘firstName’) VALUES (‘:firstName’) and SQLStatement.parameters[':firstName'] = VOList[numberOfVO][firstName]; and end with SQLConnection.commit();
- If you want to get the current database Schema (‘SELECT * FROM sqlite_master WHERE type = “table”‘) open the database in read mode SQLConnection(_sqlFile, SQLMode.READ), load the Schema sqlConnection.loadSchema() and push SQLConnection.getSchemaResult() into an Array
2
Jun/100
Jun/100
Firefox Plugin: SqliteManager as Standalone app!
Do you also like Firefox and it’s powerful addons?
Are you also working with the powerful SQLiteManager (by Tarakant Tripathy, Mrinal Kant) addons?
But sometimes your Firefox is crashing – or you have just too many tabs – or it just takes forever to open up that thing?
So, before about half a year I figured out how you can run this plugin without the Firefox at all!
Like a real application!
How it works?
- You need the XULRunner (an environment which can bootstrap XUL+XPCOM applications)
- You need the searched plugin as XULRunner application (SQLiteManager)

So check out:
http://code.google.com/p/sqlite-manager/wiki/XulrunnerApplication