Skip to content

Id based routing #4

@tonila

Description

@tonila

Hi,

I noticed, this library does not support id based routing.

Currently, when this library calls e.g. Querybuilder->save, it calls cosmos REST API 3 times.

  1. listDatabases to get database _rid
  2. listCollections to get collection _rid
  3. and finally either replaceDocument or createDocument to save document

This becomes unnecessary, when id based routing is used.

I have working implementation at my fork, altough not completely implemented nor tested:
https://github.com/tonila/cosmosdb

Feel free to check it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions