AdrianStrugala / AvroConvert

Rapid Avro serializer for C# .NET
Other
97 stars 27 forks source link

How to serialize multiple objects into one avro? #164

Open ChristianSauer opened 2 weeks ago

ChristianSauer commented 2 weeks ago

I have a range of objects I want to serialize into one avro - since I need to match the Azure Eventhub Schema I need to store an object per Record. Unfortunately, it seems the API is able to do so? AvroConvert.Serialize accepts only a single object, and while merge could to the job, its serious overhead for the number of objects I have. I considered using encoder directly, but sadly that class is internal.

AdrianStrugala commented 2 weeks ago

Hey, Please take a look at the PR: https://github.com/AdrianStrugala/AvroConvert/pull/119 Would the proposed serialization be solution to your problem? Adrian

ChristianSauer commented 1 week ago

Does it serialize into rows? I'm unsure by looking at the PR.