Azure / azure-cosmosdb-bulkexecutor-dotnet-getting-started

Bulk Executor Utility for Azure Cosmos DB .NET SQL API
MIT License
66 stars 41 forks source link

.NET Core / Standard #2

Closed cyberprune closed 5 years ago

cyberprune commented 6 years ago

Hello,

Is there are .NET standard version of this library planned? We are currently using the Microsoft.Azure.DocumentDB.Core package, so the bulk update isn't compatible with the Core library.

Thanks

Elfocrash commented 6 years ago

You beat me to that one mate. I am was about to start adding BulkImport support to Cosmonaut but it turns out i can't because the IDocumentClient of the Core in the .NET Standard version isn't compatible with the BulkExecutor DocumentClient

csi-lund commented 6 years ago

mhm need a dot net core/standard implementation this for it to be useful.

galmok commented 6 years ago

Is it possible to use the BulkExecutor as it is now in netstandard2.0 project? We tried, but it didn't like the DocumentClient from Microsoft.Azure.DocumentDB.Core (netstandard). Trying to compile results in this error:

The type 'DocumentClient' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Azure.Documents.Client, Version=1.21.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

But that assembly is part of Microsoft.Azure.DocumentDB nuget package for .NET framework. :-/

So I guess I can't create a DocumentClient compatible with BulkExecutor in netstandard project.

k-miyake commented 6 years ago

I voted for this on the feedback site. You can vote here. Feedback Forums: Cosmos DB BulkExecutor for .NET Core

JonyTek commented 6 years ago

Is there any progress on a core/standard implementation of this?

mnmr commented 6 years ago

The .NET SDKs for CosmosDB evolve at glacier speed. Can we please assign more developers to this?

Having a great database does nothing for developers without proper SDKs to access them.

argium commented 6 years ago

+1 Hitting this too.

PaulMcManus23 commented 6 years ago

+1

ianadavies commented 5 years ago

Just wasted 2hrs + implementing this :/ Not sure why nuget even let me add the package if it's not available for my target framework?!?1? Using JetBrains Rider

ThatBlokeCalledJay commented 5 years ago

I too would like to request this for Core/Standard. I have voted =0) +3

syedhassaanahmed commented 5 years ago

+1 on this. Is there an ETA for .NET Standard support?

tolly1989 commented 5 years ago

+1

SkyeHoefling commented 5 years ago

+1 This really limits anyone trying to use Azure Functions v2 which is now GA

syedhassaanahmed commented 5 years ago

Cosmos DB team released a preview of the .NET Standard version yesterday. https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.BulkExecutor/2.0.0-preview

Elfocrash commented 5 years ago

@syedhassaanahmed Why .NET Standard 2.0 though, when the Core library targets 1.6? I opened a question issue for that here https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started/issues/29

rnagpal commented 5 years ago

As explained in other thread, we now support .NET Standard 2.0 which should make it work on .NET Core applications. Please use the latest 2.0.0-preview2 release.

RemiBou commented 5 years ago

hey @rnagpal any idea when this will be released ?

syedhassaanahmed commented 5 years ago

@RemiBou It was released 2 months ago https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.BulkExecutor/2.1.0-preview2

RemiBou commented 5 years ago

This is a pre release package not a release I think.

Le mar. 29 janv. 2019 00:52, Syed Hassaan Ahmed notifications@github.com a écrit :

@RemiBou https://github.com/RemiBou It was released 2 months ago https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.BulkExecutor/2.1.0-preview2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started/issues/2#issuecomment-458350064, or mute the thread https://github.com/notifications/unsubscribe-auth/ABS8ejVs0Awv7pfg6NIqMWnyyZWUvMg5ks5vH41agaJpZM4T2N9S .

andremaree commented 5 years ago

You beat me to that one mate. I am was about to start adding BulkImport support to Cosmonaut but it turns out i can't because the IDocumentClient of the Core in the .NET Standard version isn't compatible with the BulkExecutor DocumentClient

So Cosmonaut and Bulk Executor can not be used in the same project? This is what it seems like and is unfortunate this means I can`t use Cosmonaut :(

rprasath commented 5 years ago

Is there any timeline for GA of .NetStandard package https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.BulkExecutor/2.3.0-preview2

paduchuriramesh commented 5 years ago

Any update on release of non preview version of the latest nuget with .net standard support?

richardrobberse commented 5 years ago

Any update on release of non preview version of the latest nuget with .net standard support?

Exactly and next to that, the preview package is not in line with the Microsoft.Azure.Cosmos (3.1.1) package because DocumentClient has been deprecated.

Joehannus commented 5 years ago

I'm using the bulk executor to perform updates and for some reason it just exits unexpectedly after the call of BulkUpdateAsync, without any error information. I've used the examples for the .net framework version, presuming that it's basically the same logically, when using .net Core.

Are there any examples out there using .net standard, or core. Including how to configure logging for the bulkexecutor class? Currently I've implemented a .net core console application, using serilog for logging.

Joehannus commented 5 years ago

To be more precise - regarding the fact that the console application just exits unexpectedly - I had put a try catch statement around the BulkUpdateAsync statment with two catch blocks, just as in the example (with a DocumentClientException and a Exception respectively),. After the BulkUpdateAsync statment a log statement follows - this is never reached however. Neither is either of the catch blocks reached. The console application just stops.

I've noticed in the output window the following statements b.t.w.: Sitech.Sahc.Telemetry.BulkIdCorrector Information: 0 : Sorting 100 update items into 1 partition buckets Sitech.Sahc.Telemetry.BulkIdCorrector Information: 0 : Creating mini batches within each partition bucket Sitech.Sahc.Telemetry.BulkIdCorrector Information: 0 : partitionRangeId = 0 currentMiniBatchSize = 18252 maxMiniBatchSize = 220201 currentMiniBatchItemCount = 100 Sitech.Sahc.Telemetry.BulkIdCorrector Information: 0 : Beginning bulk update within each partition bucket

Is there a minimum that you can have for a batch. I wanted to test with 100 records first, to see if everything works correctly. But that doesn't explain why the console application would just exit, without reaching one of the catch blocks.

I've also tried to break in the Exception Settings on all Common Language Runtime Exceptions. But nothing happens then either.