c.im is one of the many independent Mastodon servers you can use to participate in the fediverse.
C.IM is a general, mainly English-speaking Mastodon instance.

Server stats:

2.9K
active users

#DatabaseDesign

0 posts0 participants0 posts today
zartom<p>Composite Primary Keys: When Simplicity Trumps Complexity in Database Design<br>Optimizing database design: Single vs. composite primary keys. For smaller databases, a single, auto-incrementing primary key often offers superior performance &amp; maintainability. Simplicity trumps complexity! Composite primary keys add complexity to updates &amp; queries. <a href="https://mastodon.social/tags/DatabaseDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDesign</span></a> <a href="https://mastodon.social/tags/PrimaryKey" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PrimaryKey</span></a> <a href="https://mastodon.social/tags/CompositeKey" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CompositeKey</span></a> <a href="https://mastodon.social/tags/SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a> <a href="https://mastodon.social/tags/DatabaseOptimization" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseOptimization</span></a> <a href="https://mastodon.social/tags/Performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Performance</span></a><br><a href="https://tech-champion.com/database/db2luw/composite-primary-keys-when-simplicity-trumps-complexity-in-database-design/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">tech-champion.com/database/db2</span><span class="invisible">luw/composite-primary-keys-when-simplicity-trumps-complexity-in-database-design/</span></a></p>
Abdullah<p>🧠 SQL Mindmap &amp; Daily Life SQL Commands for Developers 🧠</p><p>SQL (Structured Query Language) is a powerful tool used by developers to manage and manipulate databases. Whether you're querying data, updating records, or performing complex joins, SQL is essential in daily development tasks. Let’s break it down!</p><p><a href="https://mastodon.social/tags/SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a> <a href="https://mastodon.social/tags/SQLCommands" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLCommands</span></a> <a href="https://mastodon.social/tags/DatabaseManagement" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseManagement</span></a> <a href="https://mastodon.social/tags/DevelopersLife" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevelopersLife</span></a> <a href="https://mastodon.social/tags/TechSkills" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TechSkills</span></a> <a href="https://mastodon.social/tags/DatabaseDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDesign</span></a></p>
Chris Woody Woodruff<p>Not every query needs a primary key.</p><p>Keyless Entity Types in EF Core let you query database views, raw SQL results, and reports without requiring a unique identifier. Perfect for read-only scenarios and complex data models.</p><p><a href="https://woodruff.dev/keyless-entity-types-in-ef-core-query-data-without-primary-keys/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">woodruff.dev/keyless-entity-ty</span><span class="invisible">pes-in-ef-core-query-data-without-primary-keys/</span></a></p><p><a href="https://mastodon.social/tags/EFCore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EFCore</span></a> <a href="https://mastodon.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <a href="https://mastodon.social/tags/DatabaseDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDesign</span></a> <a href="https://mastodon.social/tags/SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a></p>
Chris Woody Woodruff<p>Many-to-Many relationships in EF Core is just easier! No more manual join tables—EF Core handles it all!</p><p>Learn how to set up, query, and navigate many-to-many relationships without causing any trouble.</p><p>Read more: <a href="https://woodruff.dev/many-to-many-made-easy-mastering-relationships-in-ef-core/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">woodruff.dev/many-to-many-made</span><span class="invisible">-easy-mastering-relationships-in-ef-core/</span></a></p><p><a href="https://mastodon.social/tags/EFCore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EFCore</span></a> <a href="https://mastodon.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <a href="https://mastodon.social/tags/DatabaseDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDesign</span></a> <a href="https://mastodon.social/tags/DevTips" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTips</span></a></p>
Aaron Longchamps<p>I've been working on this a bit lately, but getting stuck on the database side of the IPAM relationships. Specifically, how to get a one-to-many relationship working between the network (e.g. 192.168.1.0/24) and the IP entries (192.168.1.[1..254]). Pydantic usually complains about the relationship in some form or other, saying it can't generate the schema.</p><p>One thing that definitely doesn't help is that I define the return types in one file and the Pydantic models in another, so any change I make in one I have to make in another.</p><p>For that reason, I might look at replacing how I interface with the database.</p><p>Thankfully, the testing I have in place will let me change things out easily.</p><p><a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backend</span></a> <a href="https://infosec.exchange/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://infosec.exchange/tags/databasedesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>databasedesign</span></a></p>
LavX News<p>Demystifying Database Development: Building a KV Store in 3000 Lines of Go</p><p>Ever wondered how complex software like databases works? A new approach simplifies the learning curve by guiding developers through the creation of a minimalist key-value store in just 3000 lines of G...</p><p><a href="https://news.lavx.hu/article/demystifying-database-development-building-a-kv-store-in-3000-lines-of-go" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.lavx.hu/article/demystify</span><span class="invisible">ing-database-development-building-a-kv-store-in-3000-lines-of-go</span></a></p><p><a href="https://mastodon.cloud/tags/news" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>news</span></a> <a href="https://mastodon.cloud/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a> <a href="https://mastodon.cloud/tags/GoLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GoLang</span></a> <a href="https://mastodon.cloud/tags/DatabaseDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDesign</span></a> <a href="https://mastodon.cloud/tags/CopyOnWrite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyOnWrite</span></a></p>
Aaron Longchamps<p>Gateway stuff is done for now, so it's time to work on the DHCP range data.</p><p>A network can have 0..n DHCP ranges and each DHCP range should be editable with the CRUD operations.</p><p>C - create: add a new DHCP range, make sure it doesn't overlap with another DHCP range already present on this network. All IPs should be in range, too.<br>R - read: render DHCP range information and overall IPAM utilization of the network. A DHCP range covering 200 IPs on a /24 should, for example, show roughly 80% of the IPs are used. Vuetify has UI elements to render stuff like this.<br>U - update: change data about the range such as the start/end addresses, name, or description.<br>D - delete: remove a DHCP range &lt;--&gt; network association and the associated record(s) from the db.</p><p>Validations:<br>DHCP range doesn't overlap other IPs in use on the network, such as the gateway, static IP assignments on that network (which I haven't even gotten to), or other DHCP ranges.</p><p>There's going to be a LOT of testing to go into this and I think that's why I like this kind of stuff. It forces me to think of all the use cases, write tests, add code, and balance all of it together.</p><p><a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/networking" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>networking</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://infosec.exchange/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://infosec.exchange/tags/fullstackdevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fullstackdevelopment</span></a> <a href="https://infosec.exchange/tags/fullstack" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fullstack</span></a> <a href="https://infosec.exchange/tags/vuetify" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vuetify</span></a> <a href="https://infosec.exchange/tags/databasedesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>databasedesign</span></a></p>
Ashley Rolfmore (leymoo)<p>Also; if your previous technology choices made this hard... That means a wider discussion to fix it, and don’t let outside people pressure you into compromising on data intregity in systems that need auditing. The bad ones will throw your reputation away anyway if they pressure you to do bad work and it messes up later <a href="https://hachyderm.io/tags/databasedesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>databasedesign</span></a> <a href="https://hachyderm.io/tags/DatabaseDevelopers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDevelopers</span></a> <a href="https://hachyderm.io/tags/systemDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>systemDesign</span></a> <a href="https://hachyderm.io/tags/Accountancy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Accountancy</span></a> <a href="https://hachyderm.io/tags/Audit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Audit</span></a></p>
Ashley Rolfmore (leymoo)<p>The nuance that seems to come up is parent records with child records - ie if you remove the association, the associated child audit entries disappear. </p><p>Its easier to see the issue if you remove this type of record keeping to other situations- ie if a foster parent looks after a child, say the kid breaks a leg playing football while under the care of the carer, then the kid moves on…. You’d want to know that both the kid had the accident with the carer and that the carer looked after a kid that had an accident while with them. Both sets of information either end are needed. The accident shouldn’t disappear from the carer’s record. </p><p>Yet you hear this from system designers or developers. </p><p><a href="https://hachyderm.io/tags/databasedesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>databasedesign</span></a> <a href="https://hachyderm.io/tags/DatabaseDevelopers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDevelopers</span></a> <a href="https://hachyderm.io/tags/systemDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>systemDesign</span></a> <a href="https://hachyderm.io/tags/Accountancy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Accountancy</span></a> <a href="https://hachyderm.io/tags/Audit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Audit</span></a></p>
Ashley Rolfmore (leymoo)<p>I’m starting to think that anyone who designs or builds systems that handle data should do a basic bookkeeping course that covers how double entry works. </p><p>The accountants managed to work out for us since the 13th Century that if you move money from A to B, both A and B need an audit entry describing the movement each way. Write only - nothing is removed. Yet I don’t see an equivalent teaching in the various system design books, despite this concept being fundamental to any system that needs (financial and non-financial) auditing capabilities. </p><p><a href="https://hachyderm.io/tags/databasedesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>databasedesign</span></a> <a href="https://hachyderm.io/tags/DatabaseDevelopers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DatabaseDevelopers</span></a> <a href="https://hachyderm.io/tags/systemDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>systemDesign</span></a> <a href="https://hachyderm.io/tags/Accountancy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Accountancy</span></a> <a href="https://hachyderm.io/tags/Audit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Audit</span></a></p>
Rafael Pérez :verify:<p><a href="https://c.im/tags/Introduction" class="mention hashtag" rel="tag">#<span>Introduction</span></a> </p><p>My name is Rafael. I was born in <a href="https://c.im/tags/PuertoRico" class="mention hashtag" rel="tag">#<span>PuertoRico</span></a> and I&#39;ve been living in <a href="https://c.im/tags/NYC" class="mention hashtag" rel="tag">#<span>NYC</span></a> for the past four years (I moved to <a href="https://c.im/tags/Brooklyn" class="mention hashtag" rel="tag">#<span>Brooklyn</span></a> two years ago.) I&#39;m 47 years old and I like:</p><p><a href="https://c.im/tags/Computing" class="mention hashtag" rel="tag">#<span>Computing</span></a><br /><a href="https://c.im/tags/ComputerProgramming" class="mention hashtag" rel="tag">#<span>ComputerProgramming</span></a><br /><a href="https://c.im/tags/SoftwareDevelopment" class="mention hashtag" rel="tag">#<span>SoftwareDevelopment</span></a> <br /><a href="https://c.im/tags/AI" class="mention hashtag" rel="tag">#<span>AI</span></a> <br /><a href="https://c.im/tags/VisualArt" class="mention hashtag" rel="tag">#<span>VisualArt</span></a> <br /><a href="https://c.im/tags/Design" class="mention hashtag" rel="tag">#<span>Design</span></a> <br /><a href="https://c.im/tags/Film" class="mention hashtag" rel="tag">#<span>Film</span></a><br /><a href="https://c.im/tags/Literature" class="mention hashtag" rel="tag">#<span>Literature</span></a><br /><a href="https://c.im/tags/OOD" class="mention hashtag" rel="tag">#<span>OOD</span></a>, <a href="https://c.im/tags/OOP" class="mention hashtag" rel="tag">#<span>OOP</span></a><br /><a href="https://c.im/tags/GeneticAlgorithms" class="mention hashtag" rel="tag">#<span>GeneticAlgorithms</span></a> <br /><a href="https://c.im/tags/DotNet" class="mention hashtag" rel="tag">#<span>DotNet</span></a><br /><a href="https://c.im/tags/ASP" class="mention hashtag" rel="tag">#<span>ASP</span></a><br /><a href="https://c.im/tags/CSharp" class="mention hashtag" rel="tag">#<span>CSharp</span></a><br /><a href="https://c.im/tags/Java" class="mention hashtag" rel="tag">#<span>Java</span></a> <br /><a href="https://c.im/tags/HTML" class="mention hashtag" rel="tag">#<span>HTML</span></a> <br /><a href="https://c.im/tags/JavaScript" class="mention hashtag" rel="tag">#<span>JavaScript</span></a> <br /><a href="https://c.im/tags/SQL" class="mention hashtag" rel="tag">#<span>SQL</span></a><br /><a href="https://c.im/tags/DevOps" class="mention hashtag" rel="tag">#<span>DevOps</span></a> <br /><a href="https://c.im/tags/DatabaseDesign" class="mention hashtag" rel="tag">#<span>DatabaseDesign</span></a><br /><a href="https://c.im/tags/FullStack" class="mention hashtag" rel="tag">#<span>FullStack</span></a> <br /><a href="https://c.im/tags/BusinessToConsumerApps" class="mention hashtag" rel="tag">#<span>BusinessToConsumerApps</span></a><br /><a href="https://c.im/tags/TechnicalWriting" class="mention hashtag" rel="tag">#<span>TechnicalWriting</span></a> <br /><a href="https://c.im/tags/UbuntuLinux" class="mention hashtag" rel="tag">#<span>UbuntuLinux</span></a><br /><a href="https://c.im/tags/Brooklyn" class="mention hashtag" rel="tag">#<span>Brooklyn</span></a> <br /><a href="https://c.im/tags/Manhattan" class="mention hashtag" rel="tag">#<span>Manhattan</span></a> <br /><a href="https://c.im/tags/NYC" class="mention hashtag" rel="tag">#<span>NYC</span></a> <br /><a href="https://c.im/tags/PuertoRico" class="mention hashtag" rel="tag">#<span>PuertoRico</span></a><br /><a href="https://c.im/tags/UniversityOfSussex" class="mention hashtag" rel="tag">#<span>UniversityOfSussex</span></a> <br /><a href="https://c.im/tags/Brighton" class="mention hashtag" rel="tag">#<span>Brighton</span></a>, <a href="https://c.im/tags/England" class="mention hashtag" rel="tag">#<span>England</span></a><br /><a href="https://c.im/tags/VideoGames" class="mention hashtag" rel="tag">#<span>VideoGames</span></a><br /><a href="https://c.im/tags/ContentModeration" class="mention hashtag" rel="tag">#<span>ContentModeration</span></a><br /><a href="https://c.im/tags/LongWalks" class="mention hashtag" rel="tag">#<span>LongWalks</span></a> <br /><a href="https://c.im/tags/Music" class="mention hashtag" rel="tag">#<span>Music</span></a> (Who doesn&#39;t?)</p><p>My personal website is at: <a href="https://human-assisted.blogspot.com/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="">human-assisted.blogspot.com/</span><span class="invisible"></span></a></p><p><a href="https://c.im/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="">c.im/</span><span class="invisible"></span></a> (I&#39;m mod here.)</p>