Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Using a TokenCredential for the Blob Store #14

Open
endintiers opened this issue Mar 14, 2023 · 7 comments
Open

Using a TokenCredential for the Blob Store #14

endintiers opened this issue Mar 14, 2023 · 7 comments

Comments

@endintiers
Copy link

Hiya Tatham,

I want to use SnowMaker with Neo4jClient (it just makes sense - Guid Indexes are DEEP).

BUT. My Ops Manager really hates using Keys - its all

            // Get a credential and create a service client object for the blob container.
            _containerClient = new BlobContainerClient(new Uri(containerEndpoint), AuthService.TokenProvider);

with us.

I guess: I should just fork, add that and do a PR? - Unless you have/done wanna/doit?

  • Chris :-)
@tathamoddie
Copy link
Owner

👋 I haven't meaningfully touched this repo since 2013 sorry. I think I should likely mark it as "Archived" in GitHub, and let somebody else choose to fork / evolve it.

@endintiers
Copy link
Author

endintiers commented Mar 14, 2023

No Problemo. Got any other suggestions? - Going to make a Neo4j DB with a billion nodes, need unique keys, also need index speed/size to be small as possible.

@tathamoddie
Copy link
Owner

Actually, maybe #13 does what you want already?

@endintiers
Copy link
Author

Close enough (DefaultCredential will do for now). A month ago? classic. I'll try it out - want me to review?

@tathamoddie
Copy link
Owner

Sounds good!

@tathamoddie
Copy link
Owner

Alternatively:

  1. Why do you need a unique ID? Many Neo4j/graph models don't actually. They can be a bit of a "but I did this in SQL" smell. There's already an internal ID for each node.
  2. Try apoc.create.uuid in Neo4j directly (https://neo4j.com/labs/apoc/4.2/graph-updates/uuid/#manual-uuids)
  3. Try applying a unique constraint on the label and bulk applying that way (see https://neo4j.com/labs/apoc/4.2/graph-updates/uuid/#_uuid_examples)

For bulk creation, consider an import approach instead of firing a billion calls over the wire: https://neo4j.com/docs/getting-started/current/data-import/

@endintiers
Copy link
Author

endintiers commented Mar 14, 2023

Heh, well yes, I DO happen to be migrating from a SQL DB to Neo4j... So, I just assumed I would need some Unique Id for each node - can I trust the Neo4j Ids?? I will need a bunch-o-indexes on other fields in various Node types.

Every class will normally have a REAL key like email address or source Uri. In SQL we generate keys mostly to use in junction tables which in a Graph DB are just the Edges.... so often no need for a manufactured key...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants