Coder Social home page Coder Social logo

leveldb.net's People

Contributors

odirb avatar valium125 avatar

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  avatar  avatar  avatar  avatar

Watchers

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

leveldb.net's Issues

Does not work with Unicode?

When I put into the database the values in Russian, then they are replaced with question marks!

sample:

db.Put("key3", "привет!");
var keyValue = db.Get("key3");  //??????!

I need support UTF8

Should add NuGet install guide in readme.md

NuGet has many LevelDB Library, many library not maintain but have a higher ranking, which makes it less easy to find which is this library.

So, I think should simply add a NuGet install guide in project's readme.md.

Install-Package LevelDB.Standard

To make more people use this great library.

count keys

hi, how i get number of keys in leveldb fast? without reading each value, I am looking for a productive solution.

Many typos in the examples

keyvalue (should be db)
snapShot (should be snapshot)

just cut and paste all the example code and it's easy to see - this is kinda sloppy

Database compacting

Is there a reason for not exposing leveldb_compact_range function in any way or maybe I just couldn't find it?

Failed to add this package in Centos 7.5 with .netcore

Hi all,

I'm using this lib and trying to port my codes to Centos (with .net core 2.1), but failed during add package. (the codes works good in windows)

dotnet add package LevelDB.Stardard returns failed:
error: Unable to find package LevelDB.Stardard. No packages exist with this id in source(s): nuget.org
warn : Package 'LevelDB.Net 1.2.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.
error: Package 'LevelDB.Stardard' is incompatible with 'all' frameworks in project '/home/zhcao/testdotnet/testleveldb.csproj'.

dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.2.401
Commit: 729b316c13

Runtime Environment:
OS Name: centos
OS Version: 7
OS Platform: Linux
RID: centos.7-x64
Base Path: /usr/share/dotnet/sdk/2.2.401/

Host (useful for support):
Version: 2.2.6
Commit: 7dac9b1b51

.NET Core SDKs installed:
2.2.401 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Add Snappy support for windows

Native library leveldb compiled without Snappy.
As result when you open existence leveldb database, which is used Snappy, corrupted compressed block contents error occurs.
So my suggestion to add Snappy support!

format.cc:

    case kSnappyCompression: {
      size_t ulength = 0;
      if (!port::Snappy_GetUncompressedLength(data, n, &ulength)) {          
        delete[] buf;
        return Status::Corruption("corrupted compressed block contents");   // <--- Always error
      }

port_win.h:

inline bool Snappy_GetUncompressedLength(const char* input, size_t length,
                                         size_t* result) {
#ifdef SNAPPY
  return snappy::GetUncompressedLength(input, length, result);
#else
  return false;     // <-- always false
#endif
}

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'leveldb.dll' or one of its dependencies.

All of a sudden, on all of the new projects I add leveldbnet.standard to, do not work. They throw the exception

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'leveldb.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libleveldb.dll: cannot open shared object file: No such file or directory

It still works fine on older projects that use the library.

Very low after 100 Million entry

Hello and thx for this awesome lib 👍🏼

I have to store a lot of small data. I can record 100k values per second easily, but from 100M input, the speed drops to 63 records per second.

The disk access is good, the RAM is not saturated.
Do you have any idea what the problem is?

Simple code :

while(true)
{
    entryCount = entryCount + 1;
    db.Put(entryCount.ToString(), sha256_hash(entryCount.ToString()));
}

EDIT :

Fixed using : WriteBatch ( See readme )

Thx !

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.