In my Android project I have a DatabaseFood.sql file:
BEGIN TRANSACTION;
CREATE TABLE "android_metadata" ("locale" TEXT DEFAULT 'en_US');
INSERT INTO `android_metadata` VALUES ('en_US');
CREATE TABLE "DBfood" (
`SNo.` INTEGER,
`Food` TEXT,
`Calories` INTEGER,
`Protein` INTEGER,
`Fats` INTEGER,
`Carbs` INTEGER,
`Fibers` INTEGER);
INSERT INTO `DBfood` VALUES (1,'Apple',120,50,40,30,20);
INSERT INTO `DBfood` VALUES (2,'Banana',111,45,40,50,21);
INSERT INTO `DBfood` VALUES (3,'Orange',91,31,33,19,21);
INSERT INTO `DBfood` VALUES (4,'Grapes',110,41,11,14,13);
INSERT INTO `DBfood` VALUES (5,'Mango',150,51,12,41,53);
COMMIT;
Where do I put this file if I plan to have about 20,000 entries in it? In res/raw folder or res/assets folder or somewhere else? How could I use the data in the file if I want to get the calories of an apple or proteins of an orange? How could I perform arithmetic operations with the properties (Calories, Protein etc.) of food?
Please answer with sample code or references. Also, how to match this file with 'DatabaseHelper.java' class in which I create tables and perform CRUD operations and execute queries? It would be happening with a very large amount of data (I only put that code so it becomes easy to answer with sample code).