private async Task StartImpl()
        {
            for (uint i = 0; i < OperationsCount; i++)
            {
                var operationId = _id * OperationsCount + i + 1000;

                var existing = await _index.Select <TarantoolTuple <uint>, TarantoolTuple <uint, string> >(TarantoolTuple.Create(operationId));

                if (existing.Data.Any())
                {
                    await _index.Delete <TarantoolTuple <uint>, TarantoolTuple <uint, string> >(TarantoolTuple.Create(operationId));
                }
                await _index.Insert(TarantoolTuple.Create(operationId, $"Insert operation {operationId}"));

                await _index.Select <TarantoolTuple <uint>, TarantoolTuple <uint, string> >(TarantoolTuple.Create(operationId));
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        public void Delete(Guid guid)
        {
            var deletedEntry = index.Delete(guid);

            datastore.Delete(deletedEntry.DataOffset, deletedEntry.DataSize);
        }