[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Christoforus Surjoputro
This i the link: SQLite use autoindex instead my own index | ? | | ? | | ? | ? | ? | ? | ? | | SQLite use autoindex instead my own indexI've problem with SQLite autoindex in UNIQUE table. I've create table like below. c.execute('''CREATE TABLE user( id INTEGER PRIMARY KEY, email TEXT NOT... | |

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Simon Slavin
On 28 Feb 2016, at 5:47am, Keith Medcalf wrote: > I do not see a link ... do you see a link? I saw no link. The OP may not actually be posting to this mailing list. He may be using a web interface which does the posting for him. And the web interface may be faulty and not posting the link

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Simon Slavin
On 28 Feb 2016, at 5:57am, Scott Robison wrote: > So the link appears to be: > http://stackoverflow.com/questions/35625812/sqlite-use-autoindex-instead-my-own-index And that allows us to provide an explanation. Here's the setup: sqlite> CREATE TABLE user(id INTEGER PRIMARY KEY,email TEXT NOT

[sqlite] Windows binaries compiled with ICU

2016-02-28 Thread Petr Lázňovský
Looking for %subj%, unable to find 'sqlite3.exe' with ICU extensions. Does it exist at all? If yes, couls anyone post link? thanks L.

[sqlite] Database layout in memory

2016-02-28 Thread René Czerny
Dear SQLite mailing list, after not finding anything on Google, I want to ask my question here: I am currently doing research on how to extract an SQLite inmemory-database from the image of a computer?s main memory and store it as a database file on disc. My previous attempts however failed,

[sqlite] Database layout in memory

2016-02-28 Thread Keith Medcalf
Is there something wrong with using the backup api's? > -Original Message- > From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users- > bounces at mailinglists.sqlite.org] On Behalf Of Ren? Czerny > Sent: Sunday, 28 February, 2016 08:22 > To: SQLite mailing list >

[sqlite] Database layout in memory

2016-02-28 Thread Keith Medcalf
Just in case, here is where you can find documentation on the back API ... https://www.sqlite.org/backup.html > Dear SQLite mailing list, > > after not finding anything on Google, I want to ask my question here: > > I am currently doing research on how to extract an SQLite inmemory- >

[sqlite] Database layout in memory

2016-02-28 Thread René Czerny
Thank you for the quick response, Keith! As I understand it, the SQLite Backup API?s only work with an SQLite object. E.g.: sqlite3_backup_init() needs a pointer to the database to copy from. However, I do not have access to such a pointer, as the only thing I get is a raw binary dump of the

[sqlite] Database layout in memory

2016-02-28 Thread Keith Medcalf
On Sunday, 28 February, 2016 08:46, Ren? Czerny said" > Thank you for the quick response, Keith! > As I understand it, the SQLite Backup API?s only work with an SQLite > object. E.g.: sqlite3_backup_init() needs a pointer to the database to > copy from. However, I do not have access to such a

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Christoforus Surjoputro
Thanks for reply? Simon. So you think that it better use autoindex instead of my own index for matching email and password from user input and database? How about sqlite queryplanner docs tell that said "To get the maximum performance out of a query with multiple AND-connectedterms in the WHERE

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Keith Medcalf
On Sunday, 28 February, 2016 09:17, Christoforus Surjoputro said: > Thanks for reply? Simon. > So you think that it better use autoindex instead of my own index for > matching email and password from user input and database? How about sqlite > queryplanner docs tell that said "To get the

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Simon Slavin
On Sunday, 28 February, 2016 09:17, Christoforus Surjoputro said: > So you think that it better use autoindex instead of my own index for > matching email and password from user input and database? How about sqlite > queryplanner docs tell that said "To get the maximum performance out of a >

[sqlite] ASK SQLite algoritm to chose Index

2016-02-28 Thread Keith Medcalf
Of course, if the index on (email, password) was UNIQUE, then it would be *better* than a unique index on email only, for queries constrained on both email and password. Unless you tell it so, the computer has no idea the index uniquely identifies a single row, and you do this by CREATE

[sqlite] Why is a separate journal file needed ?

2016-02-28 Thread Igor Tandetnik
On 2/28/2016 9:19 PM, Rowan Worth wrote: > On 27 February 2016 at 00:02, Igor Tandetnik wrote: > >> On 2/26/2016 4:01 AM, Rowan Worth wrote: >> >>> In principle this is correct, but actually the database *file* is not >>> immediately modified in rollback mode. Instead when a page is modified the

[sqlite] Fwd: Sqlite is secure with MD5?

2016-02-28 Thread Keith Medcalf
Is TCL being used (you have to specifically include the TCL interface ONLY if you are generating a DLL to be loaded into TCL)? Did you enable the MD5 commands? Why? If you do not want them being added to your TCL interpreter, then I would suggest perhaps not enabling the option which