Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72758 > unrolled thread

How to use SQLite (sqlite3) more efficiently

Started byR Johnson <ps16thypresenceisfullnessofjoy@gmail.com>
First post2014-06-05 16:12 -0400
Last post2014-06-05 16:12 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  How to use SQLite (sqlite3) more efficiently R Johnson <ps16thypresenceisfullnessofjoy@gmail.com> - 2014-06-05 16:12 -0400

#72758 — How to use SQLite (sqlite3) more efficiently

FromR Johnson <ps16thypresenceisfullnessofjoy@gmail.com>
Date2014-06-05 16:12 -0400
SubjectHow to use SQLite (sqlite3) more efficiently
Message-ID<mailman.10764.1401999691.18130.python-list@python.org>
I forgot to mention that the scripts Peter pointed to used REPLACE 
instead of INSERT OR REPLACE. The SQLite documentation says that REPLACE 
is an alias for INSERT OR REPLACE provided for compatibility with other 
SQL database engines. Is there a preference for one or the other?

I had changed my code from using INSERT OR REPLACE to using REPLACE 
(including my new sample), but since then changed it back. I don't care 
about compatibility with other database engines, and INSERT OR REPLACE 
seems more logical to me, since REPLACE sounds like a synonym for UPDATE.

-- Timothy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web