3

Im working on my second project with sqlite3 and have a question.

What is the difference between working with rowid and/or working with own AUTOINCREMENT INTEGER value?

Is one of both better/faster than the other?

mr_app
  • 1,292
  • 2
  • 16
  • 37

1 Answers1

3

According to the Sqlite documentation the difference is that the rowid can be reassigned, while an AUTOINCREMENT INTEGER can not.

To quote the important part:

(T)he use of AUTOINCREMENT requires additional work to be done as each row is inserted and thus causes INSERTs to run a little slower.

Johannes Kuhn
  • 14,778
  • 4
  • 49
  • 73