Why foreach do not print value during every single Insert request in SQL?

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 15 04:05:23 PST 2015


		void IMGsInsert(string [] fullimgurl)
		{
			foreach (url; fullimgurl)
			{
				string sqlinsert = (sqlrequest)
				writeln(sqlinsert);
				write("|");
				auto rs = stmt.executeUpdate(sqlinsert);
			}

		}

I expect nice progress indicator "|" which move forward after 
every Insert request.
Like:
||||
and so on.

The problem that App wait some time and only in prints a heap of 
"|". Why?


More information about the Digitalmars-d-learn mailing list