ravendb | ACID Document Database | Database library
kandi X-RAY | ravendb Summary
kandi X-RAY | ravendb Summary
ACID Document Database
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ravendb
ravendb Key Features
ravendb Examples and Code Snippets
Community Discussions
Trending Discussions on ravendb
QUESTION
I am using RavenTestDriver
for my .net core unit tests .
Here is my configuration of my RavenTestDriver
in my unit test solution :
ANSWER
Answered 2022-Apr-05 at 07:53You need to create the database before calling OpenAsyncSession
https://ravendb.net/docs/article-page/5.3/csharp/client-api/operations/server-wide/create-database#example
QUESTION
I've got the below RavenDB MultiMap index that works and returns results. Now when I want to use the query and try to filter data I get the following message:
...ANSWER
Answered 2022-Mar-19 at 20:37You need to do this in the Reduce
of the index:
QUESTION
I try to test a simple code with RavenTestDriver
in .net6 here is my code :
ANSWER
Answered 2022-Feb-16 at 06:49Finally because I don't want to change my .net version, I installed the
QUESTION
We created PeriodicExport for RavenDB database. We try to upload backup files to Azure BLOB Container.
In the Azure BLOB Container I can see incremental backup files. But I do not see full backups files.
Also I can see next error form the Raven Alerts:
Label Description Title Error in Periodic Export MessageStatus code: RequestEntityTooLarge RequestBodyTooLarge
The request body is too large and exceeds the maximum permissible limit. RequestId:8b013757-401e-0014-4965-b7e992000000 Time:2021-10-02T08:13:54.8562742Z67108864
Level
Error
And there is full exception information:
...ANSWER
Answered 2021-Oct-13 at 11:20is exists any way to increase "Maximum blob size via single write operation (via Put Blob)" limit for BLOB storage?
The limits can not be change because its designed.
Based on the Microsoft document :
Azure Storage standard accounts support higher capacity limits and higher limits for ingress and egress by request. To request an increase in account limits, contact Azure Support.
As you said , here is the table describes the maximum block and blob sizes permitted by service version.
For more information please refer this Azure Blog: Run high scale workloads on Blob storage with new 200 TB object sizes
QUESTION
I pasted a section of code that was supposed to catch an AllTopologyNodesDownError
error which doesn't work and I have no idea why.
ANSWER
Answered 2021-Sep-27 at 11:18errors.Is()
is used to tell if any error in the chain is the same instance as the provided error1, that can never be the case here because you provided a literal of your error type, no other code could hold that instance or a reference to it.
Your error looks like a type, to tell if any error in the chain is a given type you should use errors.As()
:
QUESTION
Hello there
I'm having a trouble when I try to insert a document into a Ravendb Server which is running in my other computer. I can retrieve documents easily, but when I try to use REST API with POST request I get this error
"System.ArgumentException","Message":"Query string value 'id' must have a non empty value","Error":"System.ArgumentException: Query string value 'id' must have a non empty value
even though I have my Id defined like this:
{ "id":"adawd", "name":"genereicname", "password":"something" }
Originally I'm making a flutter application but currently I'm just testing the API with Postman.
I messed around with id's (String, int) tried to leave it empty but no luck, does anyone know how to define Id for raven db to send me that sweet 200 response code...
...ANSWER
Answered 2021-Sep-22 at 06:23According to the documentation you should use PUT
to upload a new document or modify an existing one.
See: https://ravendb.net/docs/article-page/5.2/csharp/client-api/rest-api/document-commands/put-documents
QUESTION
Locally, my api is working fine but in the Azure apim when i add these lines in the controller (to access my RavenDB) i get an internal server error 500.
Here is the startup configuration:
i'm also using AzureKeyVault to get the certificate to access my RavenDB.
I added the apim's IP in the allowed IPs of RavenDB Cloud, without success.
The question is, how can i fix that ?
Feel free to ask in case you need more informations.
EDIT I recently had more information about the error 500
Problem solved Waiting for @TinyWang to write his anwser instead of a comment. You can find the things that worked for me in the comments.
...ANSWER
Answered 2021-Sep-08 at 01:24To sum up here and end this case:
According to the error message, we can see it comes from the error route in the server but not something wrong with azure apim. We can use kudu for azure web app to check the folder structure of server.
And as op said in the comment above, he chose to uploaded the certificate to the server.
I uploaded the certificate in the App Service of Azure using kudu in the C:\home\site\wwwroot> - Finally, i changed the x509KeyStorageFlags from DefaultKeySet to MachineKeySet
QUESTION
I have added RavenDB.Embedded@5.2.2 to an ASP.NET Core 5.0 application and I am attempting to configure the license without entering it into the studio GUI form. I have 2 licenses: a community and a developer -when I copy/paste either into the studio GUI it works.
I have tried:
- Putting the license json into a file called
license.json
in theServer
directory - Setting the command line arguments to include
--License.Path=C:/path/to/the/license.json
- Setting the
License.Path
key insettings.json
to the path to the license - Steps 2 and 3 but with
License
and the text value of the license
My expectation is that when setting the license via configuration, the studio should not prompt me for a license. Perhaps my assumption is wrong about this.
Has anyone successfully configured a RavenDB embedded instance without the web form?
...ANSWER
Answered 2021-Sep-07 at 17:10From the RavenDB team:
Hi,
License is only automatically activated on a non-bootstrapped server (new, empty one). It can be done e.g. like that:
QUESTION
Is there a way to modify behavior of SaveChanges
method in RavenDB? When I use EF Core, I always override that method in my DbContext to provide additional logic, such as setting audit fields (CreatedBy
, ModifiedBy
etc.). In RavenDB however, I do not inherit from DocumentSession
anywhere.
ANSWER
Answered 2021-Jul-14 at 05:55Checkout the OnBeforeStore event
in: https://ravendb.net/docs/article-page/5.2/Csharp/client-api/session/how-to/subscribe-to-events.
You can perform custom actions on any entity right before it is stored on the server.
QUESTION
I'm looking for an example of how to use a custom class as an identifier with RavenDB .NET client. I have something like this:
...ANSWER
Answered 2021-May-20 at 07:27A document identifier (document ID) is always a string that is associated with the document.
See: https://ravendb.net/docs/article-page/5.0/csharp/server/kb/document-identifier-generation
You can have the server generate the Guid for you:.
See: https://ravendb.net/docs/article-page/5.0/csharp/server/kb/document-identifier-generation#guid
To do that you assign: Id = string.Empty
See: https://ravendb.net/docs/article-page/5.0/csharp/client-api/document-identifiers/working-with-document-identifiers#autogenerated-ids
Else, maybe:
Refactor the current Id property to:
public ProductId MyId { get; }
and init with
MyId = new ProductId(Guid.NewGuid());
Add another property on the
Product
class
public string Id { get; set; }
Use OnBeforeStore to assign:
Id = MyId.Value
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ravendb
First please review and set up prerequisites.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page