[sqlite] Performance issue with CTE

2015-09-30 Thread Philippe Riand
I have a table with 500,000+ records. The table has a date column, that I?m using to sort my queries (the columns has an index). Simple queries on the table work very well, using ORDER BY, LIMIT & OFFSET. I?m actually extracting ?pages? of rows that I?m displaying in a web page. Great!. Now,

[sqlite] Best Practices

2015-09-30 Thread elu...@pentarch.org
Well, when you put it like that :) I might allow the user to change the name based on the game name. But there again, special characters. Ideally, the functionality would allow for multiple databases. I also need to figure out how to upgrade the database when I have a database upgrade, and

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread Deepak Hegde
Hi Ryan, Since you mentioned index, I started looking into other constrains and logic i had on DB. which made me realize about the trigger. Thanks a lot. Thanks and Regards Deepak On Wednesday 30 September 2015 04:47 PM, R.Smith wrote: > > > On 2015-09-30 12:31 PM, Deepak Hegde wrote: >> On

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread Deepak Hegde
Hi Ryan, Thanks a lot for your support. I had a trigger to update the one of the column in audio table on insert to audio table. That made this delay. Thanks and Regards Deepak On Wednesday 30 September 2015 04:01 PM, Deepak Hegde wrote: > Hi Ryan, > > Please find my reply below. Thanks a lot.

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread Deepak Hegde
Hi Ryan, Please find my reply below. Thanks a lot. Thanks and Regards Deepak On Wednesday 30 September 2015 03:30 PM, R.Smith wrote: > > > On 2015-09-30 11:46 AM, Deepak Hegde wrote: >> Hi All, >> >> I have a to copy entry from on database to another which have the >> similar structure. >> >>

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread Deepak Hegde
Hi Ryan, Please find my reply below. Thanks a lot. Thanks and Regards Deepak On Wednesday 30 September 2015 03:30 PM, R.Smith wrote: > > > On 2015-09-30 11:46 AM, Deepak Hegde wrote: >> Hi All, >> >> I have a to copy entry from on database to another which have the >> similar structure. >> >>

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread Deepak Hegde
Hi All, I have a to copy entry from on database to another which have the similar structure. So I am using the method of ATTACH the DB and INSERT statement to insert the 200 entries at a time. I have observed that as the entries in the copied database increases event though I am inserting 200

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread R.Smith
On 2015-09-30 12:31 PM, Deepak Hegde wrote: > On Wednesday 30 September 2015 03:30 PM, R.Smith wrote: >> >> On 2015-09-30 11:46 AM, Deepak Hegde wrote: >>> Hi All, >>> >>> I have a to copy entry from on database to another which have the >>> similar structure. >>> >>> So I am using the method of

[sqlite] [Sqlite] Insert statement execution takes more time as DB entries increases.

2015-09-30 Thread R.Smith
On 2015-09-30 11:46 AM, Deepak Hegde wrote: > Hi All, > > I have a to copy entry from on database to another which have the > similar structure. > > So I am using the method of ATTACH the DB and INSERT statement to insert > the 200 entries at a time. > I have observed that as the entries in the

[sqlite] Odd download file names

2015-09-30 Thread Stephan Beal
On Wed, Sep 30, 2015 at 3:02 AM, Stephen Chrzanowski wrote: > Yes, I did run [fossil ui], which launched a web browser to localhost/ > 127.0.0.1. > > I didn't know about showsql. That'll absolutely help. > FYI: on the CLI the equivalent is: fossil timeline [options] --sqltrace that option

[sqlite] Best Practices

2015-09-30 Thread Simon Slavin
On 30 Sep 2015, at 12:05am, eluken at pentarch.org wrote: > I am using SQLite as the backend for a table-top wargame aid. One of the > features I am including in the aid is allowing the user to change the name of > the database. What would be the best way to do so? Inside the filesystem? Or >

[sqlite] Is it legal SQL to select a specific row of a group via a HAVING clause?

2015-09-30 Thread Darren Duncan
All of the responses I've seen to this question so far seem logically wrong, or at the very least are different than I would do it, and my proposal is one that should work reliably on any DBMS. You use a subquery in the FROM clause. select currency, price from ( select currency, day,