oodrive / leveldb.net Goto Github PK
View Code? Open in Web Editor NEWLevelDB for Windows and .NET standard
License: Apache License 2.0
LevelDB for Windows and .NET standard
License: Apache License 2.0
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
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.
initiate db then use it .
I have to create a new object each time i want to connect to the store .
I think it better to implement Open / Close ... in order to have easy access and use .
Line 58 in ca286cf
hi, how i get number of keys in leveldb fast? without reading each value, I am looking for a productive solution.
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
Please add Xamarin.Android support as here https://github.com/hf/leveldb-android
inserted 5m items (guid=> string ask key and empty byte array as value) and my ram is gone
Is there a reason for not exposing leveldb_compact_range function in any way or maybe I just couldn't find it?
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]
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
}
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.
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 !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.