Is there any database that is only meant for storing string
variables?
I am currently using Sqlite library in C# but its working slow for me.
As Sqlite lets you store multiple data types. I am looking for something that is optimized for storing string
variables.
If your answer is still Sqlite then my coding must be the problem for making the transactions slow.
Basically I am calling in a loop where I just add the strings into an 'INSERT
' command that executes in the loop.
here is what the code looks like:
sql_connection = new SQLiteConnection("Data Source=File.db;Version=3;New=False;Compress=True;");
sql_connection.Open();
sql_cmd = sql_connection.CreateCommand();
for (int x = 0; x < Count; x++)
{
sql_cmd.CommandText = "INSERT INTO main_list (File_Name, File_Location) VALUES (\'" + grid_file_list.Rows[x].Cells[0].Value.ToString() + "\', \'" + grid_file_list.Rows[x].Cells[1].Value.ToString() + "');";
sql_cmd.ExecuteNonQuery();
}