database - Fast insert of rows with foreign keys in SQLite -


i want store in sqlite database lot of tuples of form (word1, word2, score). since there many repetitions of word1 , word2, save space , have more compact, created 3 tables fields:

  • table0 (id1, id2, score)
  • table1 (id, word1)
  • table2 (id, word2)

where id1 , id2 foreign keys referring primary key id of table1 , table2.

at beginning doing 1 table (word1, word2, score) , since have lot of rows, make insertion faster, using insert into union select explained here: is possible insert multiple rows @ time in sqlite database?

is there similar way insert multiple rows @ same time sqlite when have foreign key constraints?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -