문제

Today I just learned that Adobe Air has a local SQL database, which is great; however, we had been creating XML and JSON files to handle mostly everything. Rather than re-architect our application to gain a few new features, it would seem useful to simply index our existing data files, using an embedded document-oriented DB.

So the question is: what’s the easiest way to get an embedded documented-oriented DB running in the Adobe Air runtime?

도움이 되었습니까?

해결책

Try using the DB as a key/value store. Then, if you need to index a field, add a corresponding field in your key/value table and store a (very denormalized) copy of the data in there.

I think the local DB that Air uses is SQLite -- if so, you can install triggers to keep your denormalized indexed fields synchronized.

I've done the key/value thing before to store serialized JSON trees. Not nearly as good as using CouchDB, but it works.

다른 팁

guess what there is finally a document oriented database for adobe air through native extensions

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top