-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert performance #127
Comments
I have better results (33k per second), but worse than that go results. You can improve by at least 30-50% by batching queries into batches of 1000, right now you're benchmarking .net GC more than actual code of library. That does not mean, that I will leave it as it is. I'll need to rewrite our or adopt new msgpack library, most problem lie there. Unfortunately, can't provide any ETA as hard promises. This branch has some drafts of what I want to do with it. |
Whether something changes after PR #147? |
The related question on StackOverflow: https://stackoverflow.com/questions/69138615/what-is-the-best-way-to-upload-large-data-set-to-tarantool. |
Hi, I'm the author of the post in stackoverflow that Totktonada mention above. In my case I have max 63 req per second. Below you can find memory statistics:
Those settings were defined:
|
It's not a good idea to run a such number of tasks. It's better to initialize several long running tasks with loops. var tasksList = new List<Task>();
for(int i = 0; i< 30; i++)
{
taskList.Add(Task.Run( () =>
{
for(j = 0; j < 100000; j++)
{
space.Replace(new TarantoolTuple<int, int[], int>(j, new[] { j, j }, j)); // replace in order to avoid PK conflicts
}
}).ToArray();
}
//....
Task.WhenAll(tasksList).Wait();
//.... |
Hello!
I have noticed slow insert performance of insert operations in connector. To test this, i have made some benchmarks:
Create space:
Test on lua:
Results: 4 seconds, or 250k per second
Test on go:
first, truncate space: box.space.pivot:truncate()
then test:
Results: 6.74s or 148k per second
Now .net connector:
truncate: box.space.pivot:truncate()
Test:
Time: 92 sec or 11k per second
The text was updated successfully, but these errors were encountered: