Re: [sqlite] SQLite in Android N

2016-06-06 Thread Jason H
> It is my understanding that Android N will no longer allow apps to use the > system-installed SQLite library (unless they go through the Android Java > API, android.database.sqlite). > > This is unfortunate, as many existing Android apps do access libsqlite3 > directly and will crash on Android

[sqlite] MIN/MAX query

2016-02-18 Thread Jason H
> Um, I understand sets; which is why I knew the naive group by wouldn't work. > I guess I should have stated my question is HOW do I define the group so that > in the order of I,L, clusters of common V values are a "group". I need to > return the value of I and V, with the minimum and maximum L

[sqlite] Database locked error with only one process?

2015-12-30 Thread Jason H
I read around, and it seems that the consensus is it should only be locked during a multi-thread/multi-process update. However I encountered the error in a python script (single proc/single thread) that was the only reader/writer to the database. It seems that I forgot to con.commit() in a loop

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> On 10/29/15, Jason H wrote: > > > > I'm open to ideas, but I was going to use this as an excuse to invent > > something of a general tool. > > Post your schema and query. Also run ANALYZE and post the content of > the sqlite_stat1 table. I really appreciate t

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> > On 10/29/15, Jason H wrote: > >> > > If I were to try to work around... > > Before we go any further, have you actually measured a performance > problem? Or are you optimizing without prior knowledge of where your > application is spending time? Cu

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> On 10/29/15, Jason H wrote: > > > > Ah, so this is what I seem to have missed. The pages... This is unfortunate > > as the read-heavy application won't likely benefit from SQLite. > > Your filesystem and your disk hardware work the same way. Your > applicati

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> Sent: Thursday, October 29, 2015 at 2:04 PM > From: "Paul Sanderson" > To: "SQLite mailing list" > Subject: Re: [sqlite] How would sqlite read this from disk? > > It reads a complete page at a time so there is no seeking other than > to the start of each row - in the sense of a disk seek. > >

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> Sent: Thursday, October 29, 2015 at 1:53 PM > From: "Simon Slavin" > To: "SQLite mailing list" > Subject: Re: [sqlite] How would sqlite read this from disk? > > > On 29 Oct 2015, at 5:20pm, Jason H wrote: > > > Thanks, this is

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> Sent: Thursday, October 29, 2015 at 1:34 PM > From: "Scott Hess" > To: "SQLite mailing list" > Subject: Re: [sqlite] How would sqlite read this from disk? > > On Thu, Oct 29, 2015 at 10:20 AM, Jason H wrote: > > > > If I could ask a follo

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
> Sent: Thursday, October 29, 2015 at 12:10 PM > From: "Simon Slavin" > To: "SQLite mailing list" > Subject: Re: [sqlite] How would sqlite read this from disk? > > > On 29 Oct 2015, at 2:29pm, Jason H wrote: > > > In college databases, we c

[sqlite] How would sqlite read this from disk?

2015-10-29 Thread Jason H
I'm trying to figure out how SQLite3 would read the schema and data off the disk below. I read https://www.sqlite.org/fileformat2.html but didn't find what I was looking for. In college databases, we calculated the estimated number of blocks (512-byte device blocks) read given schema and

[sqlite] Error: no such column: When column exists! (Solved)

2015-07-15 Thread Jason H
Thanks everyone who chimed in about the non-breaking space issue! > Sent: Wednesday, July 15, 2015 at 3:53 PM > From: "Jason H" > To: sqlite-users at mailinglists.sqlite.org > Cc: "General Discussion of SQLite Database" mailinglists.sqlite.org> > Subje

[sqlite] Error: no such column: When column exists! (solved and thanks)

2015-07-15 Thread Jason H
Thanks everyone! > Sent: Wednesday, July 15, 2015 at 4:33 PM > From: "Jason H" > To: sqlite-users at mailinglists.sqlite.org > Cc: sqlite-users at mailinglists.sqlite.org > Subject: Re: [sqlite] Error: no such column: When column exists! > > So after further review

[sqlite] Error: no such column: When column exists!

2015-07-15 Thread Jason H
So after further review, there is a 0xa0 (non-breaking space - ) character - a non-breaking space before the semi-colon. Thus making the column name analogous to ptn.TreatmentNoteID_; I guess it is functioning as intended? > Sent: Wednesday, July 15, 2015 at 3:53 PM > From: &q

[sqlite] Error: no such column: When column exists!

2015-07-15 Thread Jason H
ral Discussion of SQLite Database" mailinglists.sqlite.org> > Subject: Re: [sqlite] Error: no such column: When column exists! > > On 7/15/15, Jason H wrote: > > Since attachments are not supported, > > https://github.com/jhihn/files/blob/master/no_such_column.sqlite3 > > >

[sqlite] Error: no such column: When column exists!

2015-07-15 Thread Jason H
Since attachments are not supported, https://github.com/jhihn/files/blob/master/no_such_column.sqlite3 I apologize for the added complexity. > Sent: Wednesday, July 15, 2015 at 1:41 PM > From: "Jason H" > To: sqlite-users at mailinglists.sqlite.org > Cc: "General Di

[sqlite] Error: no such column: When column exists!

2015-07-15 Thread Jason H
Ok, I've dropped irrelevant tables, dropped the data, vacuumed, and am attaching the result. (Does this ML support attachments?) I was using v3.7.17, I tried the 3.8.5 and 3.8.10 releases, and all are the same error. > Sent: Wednesday, July 15, 2015 at 10:28 AM > From: "Donald Griggs" > To:

[sqlite] Error: no such column: When column exists!

2015-07-15 Thread Jason H
Whenever I try a multi-table join on a field I get a no such column error. sqlite> select * from PatientTreatmentNote ptn join PatientTreatmentNoteStep pts ON pts.TreatmentNoteID = ptn.TreatmentNoteID?; Error: no such column: ptn.TreatmentNoteID sqlite> .schema PatientTreatmentNote CREATE TABLE

Re: [sqlite] Any tool to create erd from sqlite database?

2013-09-20 Thread Jason H
Don't forget about ODBC tools... Just use ta SQLite ODBC driver... From: dd To: General Discussion of SQLite Database Sent: Friday, September 20, 2013 8:11 AM Subject: [sqlite] Any tool to create erd from sqlite

Re: [sqlite] A graphical tool to handle sqlite schema change(more than ALTER TABLE)

2013-09-18 Thread Jason H
It kinda is whe. All you nees is a select into Sent from Yahoo! Mail on Android ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] a tool that allows you to graphically change sqlite schema

2013-09-17 Thread Jason H
After thinking about your post,  the sqlite alter limitation is sqlite specific. Maybe their sqlite Bryson takes this info account? I usually use the free odbc one but it is slow... Sent from Yahoo! Mail on Android ___ sqlite-users mailing list

Re: [sqlite] a tool that allows you to graphically change sqlite schema

2013-09-17 Thread Jason H
Try sql maelstro Sent from Yahoo! Mail on Android ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite clusters?

2013-09-17 Thread Jason H
! From: Eduardo Morras <emorr...@yahoo.es> To: sqlite-users@sqlite.org Cc: Jason H <scorp...@yahoo.com>; General Discussion of SQLite Database <sqlite-users@sqlite.org> Sent: Tuesday, September 17, 2013 11:35 AM Subject: Re: [sqlite] SQLite clusters?

Re: [sqlite] SQLite clusters?

2013-09-17 Thread Jason H
. :-) From: Markus Schaber <m.scha...@codesys.com> To: Jason H <scorp...@yahoo.com>; General Discussion of SQLite Database <sqlite-users@sqlite.org> Sent: Tuesday, September 17, 2013 9:36 AM Subject: AW: [sqlite] SQLite clusters? Hi

[sqlite] SQLite clusters?

2013-09-17 Thread Jason H
I'm transitioning my job from embedded space to Hadoop space. I was wondering if it is possible to come up with a SQLite cluster adaptation. I will give you a crash course in hadoop. Basically we get a very large CSV, which is chopped up into 64MB chunks, and distributed to a number of nodes.