[Qt-qml] QtJsonDb QML API review

jamey.hicks at nokia.com jamey.hicks at nokia.com
Wed Nov 23 15:34:16 CET 2011


On Nov 23, 2011, at 8:14 AM, ext Adriano Rezende wrote:

> On Tue, Nov 22, 2011 at 9:53 AM,  <jamey.hicks at nokia.com> wrote:
>> 
>> We designed JsonDb with restricted memory devices. One of our strategies is to minimize the amount of memory required by daemons so that applications have more memory available.  Sorting objects in the daemon takes memory proportional to the number of items matching the query, even if fewer items are requested. We decided to make the design decision that any application that needs to dynamically sort a query response does so in the application process, so that the amount of memory needed in the daemon is minimized.
> 
> Why JsonDb instead of providing a SQL API? Any benefits?
> I think most developers are used to the SQL syntax and they would
> prefer to use it.
> 

Many developers do know SQL. If you already have SQL-friendly data, then I would stick with QSql.

We were thinking about developers who are fetching data from the web, or who do not know SQL, or who do not want to write code to interface to SQL just so they can store some data, especially if that data is somewhat irregular.

This is an alternative to QSql and not designed to be a replacement for it.

We also designed QtJsonDb with replication in mind, so that developers could use generic device-to-device or device-to-cloud replication protocols, though that is only in the prototyping phase.

Cheers,
Jamey




More information about the Qt-qml mailing list