Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

primary-key-design

MySQL – using String as Primary Key

August 24, 2023 by Tarik

There’s nothing wrong with using a CHAR or VARCHAR as a primary key. Sure it’ll take up a little more space than an INT in many cases, but there are many cases where it is the most logical choice and may even reduce the number of columns you need, improving efficiency, by avoiding the need … Read more

Categories mysql Tags mysql, optimization, primary-key-design Leave a comment

Is there a DynamoDB max partition size of 10GB for a single partition key value?

July 17, 2023 by Tarik
Categories amazon-web-services Tags amazon-dynamodb, amazon-web-services, primary-key-design Leave a comment

MongoDB and composite primary keys

June 30, 2023 by Tarik

You should go with option 1. The main reason is that you say you are worried about performance – using the _id index which is always there and already unique will allow you to save having to maintain a second unique index. For option 1, I’m worried about the insert performance do to having non … Read more

Categories mongodb Tags composite-primary-key, mongodb, primary-key-design Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa