Doxense / foundationdb-dotnet-client

C#/.NET Binding for FoundationDB Client API
Other
145 stars 32 forks source link

Support for secondary index in DB? #125

Open kshitiz1007 opened 1 year ago

kshitiz1007 commented 1 year ago

Is there a feature of secondary index in Doxense. If not, is there any plan of creating this feature??

KrzysFR commented 1 year ago

The database name is FoundationDB, not Doxense => https://www.foundationdb.org/

This repository contains the code that is able to connect to a FoundationDB cluster from C#/.NET code.

All the patterns that you can do with FoundationDB can of course be done as well using this library. There is an example of code that can insert/update/query a secondary index here: https://github.com/Doxense/foundationdb-dotnet-client/blob/master/FoundationDB.Layers.Common/Indexes/FdbIndex%602.cs which is one way to implement secondary indexes as describe here: https://apple.github.io/foundationdb/simple-indexes.html

kshitiz1007 commented 1 year ago

@KrzysFR We are not able to find any documentation around it. Is it possible to send some reference code around this which we can use for creating secondary index.