[Qt-interest] QSql doubts
Bill King
bill.king at nokia.com
Mon Jul 20 06:21:35 CEST 2009
Theoretically it should be faster than QSettings. Usually it is,
especially if you index the right fields. Generally, when trying
something like this I write a bunch of unit tests, or a test
application, and run a comparison run between the two, get timings, etc.
ext Yuvaraj R wrote:
> Thanks for your reply..
>
> I want to save Call and Im history.
>
> Instead of Database, right now i am using Qsettings.is it better
> compared with QSql ?
>
> you have said that give file location to store the History.. I am
> going to use like..
>
> please clarify above doubts.
>
> Thanks
>
> Yuvaraj R
>
> On Mon, Jul 20, 2009 at 4:29 AM, Bill King <bill.king at nokia.com
> <mailto:bill.king at nokia.com>> wrote:
>
> ext Yuvaraj R wrote:
> > once i close my application..
> >
> > Again i login in my app.. will it store my previous details.
> otherwise
> > i have to go for QSettings
> >
> >
> > Thanks
> >
> > Yuvaraj R
> >
> > On Fri, Jul 17, 2009 at 5:52 PM, Sanderson Coelho
> > <sanderson.coelho at openbossa.org
> <mailto:sanderson.coelho at openbossa.org>
> > <mailto:sanderson.coelho at openbossa.org
> <mailto:sanderson.coelho at openbossa.org>>> wrote:
> >
> > Hi,
> >
> > addDatabase method does not create a new database, but creates a
> > new connection to database.
> > and if this already exists, this is removed and a new connection
> > is created.
> >
> >
> You can still use sqlite to do this, just change
> db.setDatabaseName(":memory:"); to something like
> db.setDatabaseName("/path/to/localfile"); and whatever you store
> will be
> persisted to that file.
>
> --
> Bill King, Software Engineer
> Qt Software, Nokia Pty Ltd
> Brisbane Office
>
>
--
Bill King, Software Engineer
Qt Software, Nokia Pty Ltd
Brisbane Office
More information about the Qt-interest-old
mailing list