[yunqa.de] Re: Disqlite 3 Pro : Temporary table question

  • From: "Jon Burnham" <jba@xxxxxxxxxxxxxx>
  • To: <yunqa@xxxxxxxxxxxxx>
  • Date: Mon, 2 Apr 2012 10:16:29 +0100

Thank you Ralf.

Making some progress here.

1) It seems that splitting the DB's is a better choice. Easier to maintain by 
function too.

2) Best way of storing SQL statements persistently, any thoughts - perhaps just 
a hidden memo with labels ? 

3) Those demo's need to be updated for XE2. I still think form based demo's are 
much easier to understand.

J.





-----Original Message-----
From: yunqa-bounce@xxxxxxxxxxxxx [mailto:yunqa-bounce@xxxxxxxxxxxxx] On Behalf 
Of Delphi Inspiration
Sent: 01 April 2012 22:10
To: yunqa@xxxxxxxxxxxxx
Subject: [yunqa.de] Re: Disqlite 3 Pro : Temporary table question

On 01.04.2012 21:43, Jon Burnham wrote:

> 1) In this scenario, should I be using multi DBs or just one. Is there 
> a performance gain/loss by using many?

Single or multiple DBs don't make much of a difference, except as discussed and 
explained in this thread:

  //www.freelists.org/post/yunqa/DISQLite-multithread

Other than that, go for what appeals to you most.

> 2) Should I use disk based or mem based DBs, again in this scenario.

Same as 1). But obviously depends on your memory and DB size, no?

> 3) Please can you give me a quick pointer on how to use params for 
> that query.

Look up sqlite3_bind_blob(). Or just SEARCH DISQLite3.chm for "params".

> 4) Is there a good way I can avoid using 'inline' SQL, as I hate it, 
> it's so prone to errors (for me). But then params make this difficult 
> if there is no design persistence to accommodate them.

Demos here:

* DISQLite3\Demos\DISQLite3_Bind_Params
* DISQLite3\Demos\DISQLite3_Bind_Params_Names

Ralf
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: