• 0 Posts
  • 200 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • eluvatartoLearn ProgrammingWhat is NoSQL good for?
    link
    fedilink
    arrow-up
    13
    ·
    22 days ago

    A place where this type of DB really shines is in messaging. For example Discord uses NoSQL. Each message someone sends is a row, but each message can have reactions made on it by other users. In a SQL database there would be 2 tables, one for messages and one for reactions with a foreign key to the message. But at the scale of Discord they can’t use a single SQL server which means you can’t really have 2 tables and do a join to find reactions on a message. Obviously you could shard the databases. But in NoSQL you just lookup the message and the reactions are just stored alongside it, not in another table, making the problem simpler.

















  • eluvatartoC SharpOption Result library for c#
    link
    fedilink
    arrow-up
    6
    ·
    8 months ago

    At least for this specific example I don’t know why I wouldn’t use null instead of option and ?? As it’s more clear what’s happening as it’s standard C#

    Also in your example does the function to the right of | execute always?