示例#1
0
        private bool ExecCursor()
        {
            if (_client == null)
            {
                return(false);
            }

            Stopwatch swClientCursorExecute = new Stopwatch();

            swClientCursorExecute.Start();
            _cursor = _client.ExecCursor(sql);
            swClientCursorExecute.Stop();
            execCursorTimer = swClientCursorExecute.ElapsedMilliseconds;
            AddToTotalTime(execCursorTimer);
            swClientCursorExecute.Reset();

            Sys.Log2(50, $"{{{threadId}}} Thread group [{threadGroupName}][{iteration}] ExecCursor [{Sys.TimerGetText(execCursorTimer)}]");

            if (_cursor == null)
            {
                return(false);
            }
            return(true);
        }
示例#2
0
 public DocExportIndexToCsv(ExportIndexToCsv cmd, Engine.Client.Cursor cursor, Dictionary <string, string> dColumnAlias)
 {
     _cmd          = cmd;
     _cursor       = cursor;
     _dColumnAlias = dColumnAlias;
 }