示例#1
0
 public void AbortingSequentialAccess(MySqlField[] fields, int startIndex)
 {
     if (!conn.Settings.UseUsageAdvisor) return;
     LogUAHeader(null);
     Logger.WriteLine("");
     Logger.WriteLine("A rowset that was being accessed using SequentialAccess had to load " +
                      "all of its remaining columns.  This can cause performance problems.  This is most " +
                      "likely due to calling Prepare() on a command before reading all the columns of a " +
                      "rowset that is being accessed with SequentialAccess");
     LogUAFooter();
 }
示例#2
0
		public void ReadPartialRowSet(string cmdText, bool[] uaFieldsUsed, MySqlField[] fields)
		{
            if (!conn.Settings.UseUsageAdvisor) return;

            LogUAHeader(cmdText);
			Logger.WriteLine("Reason: Every column was not accessed.  Consider a more focused query.");
			Logger.Write("Fields not accessed: ");
			for (int i = 0; i < uaFieldsUsed.Length; i++)
				if (!uaFieldsUsed[i])
					Logger.Write(" " + fields[i].ColumnName);
			Logger.WriteLine(" ");
			LogUAFooter();
		}