Giter VIP home page Giter VIP logo

stsdb4's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stsdb4's Issues

lookup operation performance is bad

Hi,
I came up with some tests of your database implementation and find out that every lookup operation performs really bad on big data.
It seems that nearly 40% of the time is taken by Task.Wait().

To check the performance you can easily extend your Getting-Started example by the following block:

            //lookup
            Console.WriteLine("Lookup...");
            sw.Reset();
            c = 0;
            using (IStorageEngine engine = STSdb.FromFile(FILE_NAME))
            {
                ITable<long, Tick> table = engine.OpenXTable<long, Tick>("table");
                //select all ids to be sure there is a match
                var ids = table.Select(kvp => kvp.Key).ToList();
                //loading keys is not part of measurement
                sw.Start();
                foreach (var id in ids) //table.Forward(), table.Backward()
                {
                    var data = table.Find(id);
                    //Console.WriteLine("{0} {1}", id, data);

                    c++;
                    if (c % 100000 == 0)
                        Console.WriteLine("Found {0} records", c);
                }
            }
            sw.Stop();
            Console.WriteLine("Lookup speed:{0} rec/sec", sw.GetSpeed(c));

Do you have any plans on increasing lookup performance?

[running in mono]'IsBlack' is not a member of type 'SortedSet'

ArgumentException: 'IsBlack' is not a member of type 'System.Collections.Generic.SortedSet1+Node[System.Collections.Generic.KeyValuePair2[STSdb4.Data.IData,STSdb4.Data.IData]]'

System.Linq.Expressions.Expression.PropertyOrField (System.Linq.Expressions.Expression expression, System.String propertyOrFieldName) [0x00000] in , line 0
TypeInitializationException: An exception was thrown by the type initializer for STSdb4.General.Extensions.SortedSetHelper`1

STSdb4.General.Collections.OrderedSet`2[STSdb4.Data.IData,STSdb4.Data.IData].TryGetValue (IData key, IData& value) [0x00000] in , line 0

Update NuGet library to 4.0.8

Hi,

Awesome library which a colleague and I discovered earlier today. We've been doing tests all day, and so far we're amazed.

Would it be possible for you to update the NuGet library hosted here (https://www.nuget.org/packages/STSdb/) ?

This library is quite old, being version 4.0.0 from 2013, where the newest in this repository seems to be 4.0.8 and from late 2015. It would make adoption easier, at least for my part :).

Regards,
Mike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.