MapSuite Team,
I’m looking to get more speed out of my large SQLiteFeatureLayer(s).
Below is an example of the SQL to create a table. Would you offer your opinion on these statements from the perspective of table access efficiency?
Thanks,
Dennis
CREATE TABLE Buildings (Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, geometry BLOB, date_bldg_ NUMERIC, time_bldg_ TEXT, bldg_condi TEXT, bldg_id NUMERIC, bldg_name1 TEXT, bldg_name2 TEXT, bldg_sq_fo NUMERIC, bldg_statu TEXT, cdb_city_i TEXT, comments TEXT, date_condi NUMERIC, time_condi TEXT, create_use TEXT, date_demol NUMERIC, time_demol TEXT, date_edit_ NUMERIC, time_edit_ TEXT, edit_sourc TEXT, edit_useri TEXT, f_add1 NUMERIC, footprint_ TEXT, harris_str TEXT, label_hous TEXT, no_of_unit NUMERIC, no_stories NUMERIC, non_standa TEXT, orig_bldg_ NUMERIC, pre_dir1 TEXT, date_qc_da NUMERIC, time_qc_da TEXT, qc_source TEXT, qc_userid TEXT, shape_area NUMERIC, shape_len NUMERIC, st_name1 TEXT, st_type1 TEXT, stories NUMERIC, suf_dir1 TEXT, t_add1 NUMERIC, unit_name TEXT, vacancy_st TEXT, x_coord NUMERIC, y_coord NUMERIC, year_built NUMERIC, z_coord NUMERIC)
CREATE VIRTUAL TABLE idx_Buildings_geometry USING rtree_i32(Id, minx, maxx, miny, maxy)
CREATE UNIQUE INDEX IF NOT EXISTS main.idx_Buildings_Id ON Buildings (Id);