[{"data":1,"prerenderedAt":742},["ShallowReactive",2],{"blog-transactions-postgres-golang":3,"blog-all-for-related":246},{"id":4,"title":5,"author":6,"body":7,"cardAlt":5,"categories":229,"description":233,"draft":234,"extension":235,"headerImage":236,"keywords":237,"meta":238,"name":239,"navigation":240,"path":241,"seo":242,"series":6,"stem":243,"updated":6,"year":244,"__hash__":245},"blog\u002Fblog\u002Ftransactions-postgres-golang.md","Transactions on Postgres with Golang",null,{"type":8,"value":9,"toc":220},"minimark",[10,14,17],[11,12,13],"p",{},"In this article, I will be discussing how to execute DB operations on Postgres in Golang.",[11,15,16],{},"Databases are basic components of any application. Recently building applications in Golang, I too had the use case to persist data and perform queries on it.",[18,19,20,23,28,45,48,51,76,79,83,91,94,97,99,103,106,111,114,141,149,159,162,169,172,175,178,181,190,201,203,206,215],"ads",{},[21,22],"hr",{},[24,25,27],"h2",{"id":26},"starting-with-the-basics","Starting with the Basics ✅",[11,29,30,31,38,39,44],{},"I’ll be using ",[32,33,37],"a",{"href":34,"rel":35},"https:\u002F\u002Fgorm.io\u002F",[36],"nofollow","GORM"," library here. If you are using ",[32,40,43],{"href":41,"rel":42},"https:\u002F\u002Fgithub.com\u002Flib\u002Fpq",[36],"pq",", make required modifications but the concept will remain the same.",[11,46,47],{},"Let’s first create a DB module and set up our own PostgresStore to increase readability and access only those methods which we need. You can anytime add\u002Fremove as per your need.",[11,49,50],{},"I have added the following operations —",[52,53,54,58,61,64,67],"ul",{},[55,56,57],"li",{},"DB() — which is our Postgres DB instance",[55,59,60],{},"Begin() — which starts a transaction block",[55,62,63],{},"Commit() — commits the current transaction",[55,65,66],{},"Rollback() — abort the current transaction",[55,68,69,70,75],{},"Close() — closes the cursor ( Read more ",[32,71,74],{"href":72,"rel":73},"https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002F8.4\u002Fsql-close.html",[36],"here",")",[11,77,78],{},"Rest is just the implementation of these methods. Please refer to the code below.",[80,81],"script",{"src":82},"https:\u002F\u002Fgist.github.com\u002Fmkfeuhrer\u002F09f619de3744830d09a9beae3fd5edbf.js",[11,84,85,86,90],{},"Now, once we have done our setup. Do set up your basic table with some data. I created a user table with ",[87,88,89],"code",{},"id,name and gender"," columns. Let’s do a simple SELECT query on it —",[80,92],{"src":93},"https:\u002F\u002Fgist.github.com\u002Fmkfeuhrer\u002Fe648042f4b45239837a066a6617f8c25.js",[11,95,96],{},"Congrats, you just performed a DB operation. You can do all kinds of SQL magic here 😉",[21,98],{},[24,100,102],{"id":101},"lets-do-some-transactions","Let’s do some Transactions 💰",[11,104,105],{},"For those who are not aware of what Transaction means in database. I’ll recommend reading about it first.",[107,108,110],"h3",{"id":109},"what-are-db-transactions","What are DB Transactions?",[11,112,113],{},"A database transaction is a single unit of work that may consist of one or more operations. A transaction in a database system must maintain the ACID properties.",[52,115,116,123,129,135],{},[55,117,118,122],{},[119,120,121],"strong",{},"A","tomicity",[55,124,125,128],{},[119,126,127],{},"C","onsistency",[55,130,131,134],{},[119,132,133],{},"I","solation",[55,136,137,140],{},[119,138,139],{},"D","urability",[11,142,143,144,148],{},"Read awesome geeksforgeeks article ",[32,145,74],{"href":146,"rel":147},"https:\u002F\u002Fwww.geeksforgeeks.org\u002Fsql-transactions\u002F",[36],".",[11,150,151,152,155,158],{},"Now let’s implement transactions to make our concepts solid.",[153,154],"br",{},[119,156,157],{},"Note:"," I’ll recommend to always code out the concepts you learn. It lets you understand the topic better.",[11,160,161],{},"A transaction will consist of the following stages —",[11,163,164],{},[165,166],"img",{"alt":167,"src":168},"Flowchart of database transaction stages: begin, execute, commit, close, with rollback on error","https:\u002F\u002Fcdn-images-1.medium.com\u002Fmax\u002F1600\u002F1*3TSLivJz7JwJDta9oZvSzQ.png",[11,170,171],{},"Same stages in Golang would be like this —",[80,173],{"src":174},"https:\u002F\u002Fgist.github.com\u002Fmkfeuhrer\u002F1294dfe4186695faafaf09fe0ed7ba02.js",[11,176,177],{},"Transactions are highly useful and recommended since they maintain ACID properties. Also, in the case of bulk queries, you can execute let's say multiple execute queries. But commit only once. This reduces the time taken to execute that bulk operation. Otherwise, each query would commit and increase the overall time.",[11,179,180],{},"Try experimenting and clocking the time taken with and without a transaction. Now, get back to your codebases and implement transactions if you were not till now 😊",[11,182,183,184,189],{},"Liked the article? Consider ",[32,185,188],{"href":186,"rel":187},"https:\u002F\u002Fwww.buymeacoffee.com\u002FchHAzigTb",[36],"supporting me"," ☕️",[191,192,193],"blockquote",{},[11,194,195,196],{},"Upskill yourself with awesome courses on ",[32,197,200],{"href":198,"rel":199},"https:\u002F\u002Fwww.educative.io\u002Fexplore?aff=K3zN",[36],"Educative",[21,202],{},[11,204,205],{},"I hope you learned something new. Feel free to suggest improvements ✔️",[11,207,208,209,214],{},"I share regular updates and resources on ",[32,210,213],{"href":211,"rel":212},"https:\u002F\u002Ftwitter.com\u002Fmkfeuhrer",[36],"Twitter",". Let's connect!",[11,216,217],{},[119,218,219],{},"Keep exploring 🔎 Keep learning 🚀",{"title":221,"searchDepth":222,"depth":222,"links":223},"",2,[224,225],{"id":26,"depth":222,"text":27},{"id":101,"depth":222,"text":102,"children":226},[227],{"id":109,"depth":228,"text":110},3,[230,231,232],"Golang","Database","Programming","Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.",false,"md","blog\u002Ftransactions-postgres-golang\u002Ftransactions-postgres-golang-card.webp","golang postgres example, postgres transaction golang, golang database transactions",{},"transactions-postgres-golang",true,"\u002Fblog\u002Ftransactions-postgres-golang",{"title":5,"description":233},"blog\u002Ftransactions-postgres-golang","2020-03-18","VJHzKpaPMOeUpZo5c5k41yRvS5LjP1OR_Y1L8l7-EwE",[247,254,260,268,277,284,291,298,304,310,316,322,328,338,345,352,360,368,374,381,387,393,399,405,411,417,423,429,436,442,448,454,460,466,472,478,484,490,496,502,508,514,520,527,533,539,545,552,558,564,571,578,584,591,597,604,610,617,623,629,635,641,647,653,659,665,671,677,683,689,696,702,709,715,717,723,730,736],{"path":248,"title":249,"description":250,"categories":251,"draft":240,"year":253,"series":6},"\u002Fblog\u002Fai-assisted-workstation","Building an AI-Assisted Personal Workstation","How I built a personal AI workstation: markdown knowledge base, portable agent skills, handoff-driven sessions. What worked, what broke, what I would change.",[252,232],"Productivity","2026-08-26",{"path":255,"title":256,"description":257,"categories":258,"draft":234,"year":259,"series":6},"\u002Fblog\u002Faws-s3-golang","Uploading images to AWS S3 in Golang","In this tutorial I cover how to upload, fetch and manage other operations for objects on AWS S3 in Golang",[230,232],"2020-01-12",{"path":261,"title":262,"description":263,"categories":264,"draft":234,"year":267,"series":6},"\u002Fblog\u002Fbooks-for-engineers","Best Books for Software Engineers","Best Books to help you build you software engineering career - ranging from fundamentats, interview prep to productivity.",[265,266],"Books","Life","2021-12-26",{"path":269,"title":270,"description":271,"categories":272,"draft":234,"year":276,"series":6},"\u002Fblog\u002Fbuilding-acrons","Building Acrons 🚀","Building Acrons, a one-stop tool to decode everyday acronyms like DIY, FOMO, and BRB without losing your flow.",[273,274,275],"Side Projects","Web","Tools","2020-05-26",{"path":278,"title":279,"description":280,"categories":281,"draft":234,"year":283,"series":6},"\u002Fblog\u002Fcap-theorem","CAP Theorem Explained","Learn the concept and misconceptions around popular CAP theorem in system design.",[282,232],"System Design","2021-07-26",{"path":285,"title":286,"description":287,"categories":288,"draft":234,"year":290,"series":6},"\u002Fblog\u002Fcode-reviews","Code Review Checklist","Why code reviews matter, and best practices that catch bugs early and keep code quality high before merge.",[289],"Engineering Principles","2020-07-20",{"path":292,"title":293,"description":294,"categories":295,"draft":234,"year":297,"series":6},"\u002Fblog\u002Fdark-mode","Add Dark mode to websites","Dark mode is ❤️️ Add it to your websites with little CSS and JS",[296,274],"Javascript","2020-07-04",{"path":299,"title":300,"description":301,"categories":302,"draft":234,"year":303,"series":6},"\u002Fblog\u002Fdate-time-golang","Working with Date and Time in Go","Learn how to use time in Golang - Multiple formats, locations and using date.",[230,232],"2020-10-09",{"path":305,"title":306,"description":307,"categories":308,"draft":234,"year":309,"series":6},"\u002Fblog\u002Fdefer-in-golang","Understanding Defer In Golang","Learn about defer keyword in golang and how it can help you avoid panics due to bugs.",[230,232],"2021-05-05",{"path":311,"title":312,"description":313,"categories":314,"draft":234,"year":315,"series":6},"\u002Fblog\u002Fenums-golang","Implementing Enums in Golang","Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.",[230,232],"2021-12-18",{"path":317,"title":318,"description":319,"categories":320,"draft":234,"year":321,"series":6},"\u002Fblog\u002Fenvironment-variable-golang","Guide to Environment variables in Go","Learn what are environment variables and how to use them in Go",[230,232],"2020-08-14",{"path":323,"title":324,"description":325,"categories":326,"draft":234,"year":327,"series":6},"\u002Fblog\u002Ferror-handling-golang","Handle errors the right way — Golang","How to handle errors in golang to make your life easy",[230,232],"2020-01-30",{"path":329,"title":330,"description":331,"categories":332,"draft":240,"year":335,"series":336},"\u002Fblog\u002Ffile-attack-document-macros","File Attack Deep Dives, Part 3: Document Macros","How malicious VBA hides in vbaProject.bin, which AutoOpen entry points fire it, and the sandbox signals that catch it.",[333,334],"Security","Systems","2026-09-17",{"name":337,"part":228},"File Attack Deep Dives",{"path":339,"title":340,"description":341,"categories":342,"draft":234,"year":253,"series":343},"\u002Fblog\u002Ffile-attack-field-guide","How File-Based Attacks Land: A Detection Engineer's Field Guide","A practical taxonomy of how malware and phishing arrive as files, why classic controls miss them, and how detection should think.",[333,334],{"name":337,"part":344},1,{"path":346,"title":347,"description":348,"categories":349,"draft":240,"year":350,"series":351},"\u002Fblog\u002Ffile-attack-html-smuggling","File Attack Deep Dives, Part 2: HTML Smuggling","How attackers assemble malware inside the browser with Blob URLs, and the URL and script tells that catch it.",[333,334],"2026-09-10",{"name":337,"part":222},{"path":353,"title":354,"description":355,"categories":356,"draft":240,"year":357,"series":358},"\u002Fblog\u002Ffile-attack-lnk-iso","File Attack Deep Dives, Part 5: LNK and ISO Smuggling","How ISO containers and weaponized shortcuts bypass Mark of the Web, and the forensic fields that catch them.",[333,334],"2026-10-01",{"name":337,"part":359},5,{"path":361,"title":362,"description":363,"categories":364,"draft":240,"year":365,"series":366},"\u002Fblog\u002Ffile-attack-pdf-url-actions","File Attack Deep Dives, Part 4: PDF URL Actions","How PDF OpenAction, Launch, and URI actions turn opening a document into a phishing click, and the action audit that catches them.",[333,334],"2026-09-24",{"name":337,"part":367},4,{"path":369,"title":370,"description":371,"categories":372,"draft":234,"year":373,"series":6},"\u002Fblog\u002Ffile-upload-golang","Uploading Files in Golang with Multipart Request","Learn how to upload files from your client to server as a multipart request in Golang.",[230,232],"2021-03-13",{"path":375,"title":376,"description":377,"categories":378,"draft":234,"year":380,"series":6},"\u002Fblog\u002Fgit-branch","Git Branch 101","Branching is a new path of development that makes it a lot easier to build features. Learn why and how to use branching in git.",[379,232],"Git","2022-03-20",{"path":382,"title":383,"description":384,"categories":385,"draft":234,"year":386,"series":6},"\u002Fblog\u002Fgit-pull-request-template","Guide to Pull Request Templates","Improve collaboration and code reviews with pull request templates. Blog include PR template and how to create one on github\u002Fgitlab",[379,232],"2023-08-24",{"path":388,"title":389,"description":390,"categories":391,"draft":234,"year":392,"series":6},"\u002Fblog\u002Fgit-remove-sensitive-info","Securing Git: Remove Sensitive Information","Protect your code from security breaches by using BFG tool to remove sensitive information from Git history. Learn how to do it in this comprehensive guide.",[379,232],"2023-10-16",{"path":394,"title":395,"description":396,"categories":397,"draft":234,"year":398,"series":6},"\u002Fblog\u002Fgit-tags-explained","Git tags : Explained","What Git tags are, why and when to use them, and how to start tagging releases in your own projects.",[379,232],"2020-06-18",{"path":400,"title":401,"description":402,"categories":403,"draft":234,"year":404,"series":6},"\u002Fblog\u002Fgo-dependency-injection","Dependency Injection in Go using Wire","Learn about dependency injection, its benefits and how to implement it in Go services using wire",[230,232],"2022-11-26",{"path":406,"title":407,"description":408,"categories":409,"draft":234,"year":410,"series":6},"\u002Fblog\u002Fgo-generics","Introduction to Generics in Go","Learn about generics in Golang, it's benefits and how to implement it in applications.",[230,232],"2022-11-27",{"path":412,"title":413,"description":414,"categories":415,"draft":234,"year":416,"series":6},"\u002Fblog\u002Fgo-in-memory-cache","Building In-Memory Cache in Go","Learn about in-memory caching in Golang, it's benefits and how to implement it with and without generics with a TTL(expiry).",[230,232],"2024-03-28",{"path":418,"title":419,"description":420,"categories":421,"draft":234,"year":422,"series":6},"\u002Fblog\u002Fgo-makefile","Ultimate Makefile for Golang","Boost your productivity and save time with ultimate Makefile for Golang projects.",[230,232],"2024-06-10",{"path":424,"title":425,"description":426,"categories":427,"draft":234,"year":428,"series":6},"\u002Fblog\u002Fgo-middleware","Mastering Middlewares in Golang","Learn about middlewares, their use cases and how to implement them in Golang applications",[230,232],"2022-03-13",{"path":430,"title":431,"description":432,"categories":433,"draft":234,"year":435,"series":6},"\u002Fblog\u002Fgo-naming-conventions","Naming Conventions in Golang","Why naming conventions matter in Go, with best practices and practical examples for clear, readable, maintainable code.",[230,232,434],"Code Quality","2023-05-19",{"path":437,"title":438,"description":439,"categories":440,"draft":234,"year":441,"series":6},"\u002Fblog\u002Fgo-with-redis","Go with Redis","A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.",[230,231,232],"2020-05-03",{"path":443,"title":444,"description":445,"categories":446,"draft":234,"year":447,"series":6},"\u002Fblog\u002Fgolang-maps","Learn Maps in Golang (with examples)","A complete guide to maps in Golang: creating maps, adding and removing items, iterating, and how map equality works.",[230,232],"2020-09-10",{"path":449,"title":450,"description":451,"categories":452,"draft":234,"year":453,"series":6},"\u002Fblog\u002Fguide-to-cdn","Guide to Content Delivery Network","CDN is one of the backbone of modern world internet infrastructure. Learn about Content Delivery Network, it's working, types and benefits.",[282,232],"2022-01-23",{"path":455,"title":456,"description":457,"categories":458,"draft":234,"year":459,"series":6},"\u002Fblog\u002Fguide-to-rule-engines","Guide to Rule Engines","Rule Engines help in solving changing business requirements with ease. Learn all about Rule engines, it's working, benefits and how to implement one in Golang",[230,232],"2022-09-12",{"path":461,"title":462,"description":463,"categories":464,"draft":234,"year":465,"series":6},"\u002Fblog\u002Fhexagonal-architecture","Guide to Hexagonal Architecture","Learn how to design efficient application with hexagonal architecture with practical example",[282,232],"2020-12-13",{"path":467,"title":468,"description":469,"categories":470,"draft":234,"year":471,"series":6},"\u002Fblog\u002Fhttp-status-codes","Learn HTTP Status Codes","A tour of HTTP response status codes, what each class means, and when to use which code in your applications.",[274,232],"2020-07-30",{"path":473,"title":474,"description":475,"categories":476,"draft":234,"year":477,"series":6},"\u002Fblog\u002Fintroduction-to-goroutines","Introduction to Goroutines","Understand the basics of concurrency and learn how to work with Goroutines in golang.",[230,232],"2021-04-10",{"path":479,"title":480,"description":481,"categories":482,"draft":234,"year":483,"series":6},"\u002Fblog\u002Fjson-in-postgres-with-golang","Storing JSON in Postgres with Golang","Learn how to store JSON objects in Postgres and how to implement it in Golang.",[232,231,230],"2021-02-13",{"path":485,"title":486,"description":487,"categories":488,"draft":234,"year":489,"series":6},"\u002Fblog\u002Fjson-web-token","Complete Guide to JWT","JSON Web Tokens are a very compact way to carry information. Learn about JWTs in depth, from its structure to when to use it.",[232,274],"2021-11-20",{"path":491,"title":492,"description":493,"categories":494,"draft":234,"year":495,"series":6},"\u002Fblog\u002Flearn-to-say-no","Learning to say No","Learn why it's important to say 'NO'. How it helps in increasing productivity and explore strategies for saying No",[266,265],"2022-04-09",{"path":497,"title":498,"description":499,"categories":500,"draft":234,"year":501,"series":6},"\u002Fblog\u002Flearn-unlearn-relearn","Learn - Unlearn - Relearn","Unlearning things to learn new is the way to grow. Discover how to do that!",[252,266],"2020-09-25",{"path":503,"title":504,"description":505,"categories":506,"draft":234,"year":507,"series":6},"\u002Fblog\u002Flinting-in-golang","Introduction to Linting in Go","Introduction to improving code quality using linting. Learn how to add linting in your Go projects.",[230,232],"2021-07-07",{"path":509,"title":510,"description":511,"categories":512,"draft":234,"year":513,"series":6},"\u002Fblog\u002Fload-balancing","Load Balancing 101","Complete guide on load balancers explaining the internal working and how does it help in making applications efficient.",[282,232],"2021-05-29",{"path":515,"title":516,"description":517,"categories":518,"draft":234,"year":519,"series":6},"\u002Fblog\u002Fmaking-decisions-the-right-way","Making Decisions: The right way","Decisions are hard! Learn how to make the right decisions always",[252,266],"2020-06-07",{"path":521,"title":522,"description":523,"categories":524,"draft":234,"year":526,"series":6},"\u002Fblog\u002Fmanage-logs-with-logrotate","Using Logrotate to manage logs","Learn how to use logrotate system utility to manage logs with example",[525,232],"Linux","2020-09-08",{"path":528,"title":529,"description":530,"categories":531,"draft":234,"year":532,"series":6},"\u002Fblog\u002Fmarshal-structs-golang","Marshal structs the right way: Golang","Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.",[230,232],"2020-03-31",{"path":534,"title":535,"description":536,"categories":537,"draft":234,"year":538,"series":6},"\u002Fblog\u002Fnotes-almanack-naval","Book Notes : Almanack of Naval Ravikant","My notes\u002Fhighlights from Almanack of Naval Ravikant book by Eric Jorgenson",[265,266],"2020-10-17",{"path":540,"title":541,"description":542,"categories":543,"draft":234,"year":544,"series":6},"\u002Fblog\u002Fnotes-anything-you-want","Book Notes : Anything you want","My notes\u002Fhighlights from Anything you want book by Derek Sivers",[265,266],"2021-09-25",{"path":546,"title":547,"description":548,"categories":549,"draft":234,"year":551,"series":6},"\u002Fblog\u002Fnotes-getting-real","Book Notes : Getting Real","My notes and highlights from Getting Real by Jason Fried and David Heinemeier Hansson on building web applications.",[265,550],"Startups","2020-11-03",{"path":553,"title":554,"description":555,"categories":556,"draft":234,"year":557,"series":6},"\u002Fblog\u002Fnotes-hell-yeah-or-no","Book Notes : Hell Yeah or No","My notes\u002Fhighlights from Hell Yeah or No book by Derek Sivers",[265,266],"2020-09-16",{"path":559,"title":560,"description":561,"categories":562,"draft":234,"year":563,"series":6},"\u002Fblog\u002Fnotes-how-to-be-a-capitalist","Book Notes : How to Be a Capitalist Without Any Capital","My notes\u002Fhighlights from How to Be a Capitalist Without Any Capital by Nathan Latka",[265,550],"2020-01-07",{"path":565,"title":566,"description":567,"categories":568,"draft":234,"year":570,"series":6},"\u002Fblog\u002Fnotes-lean-b2b","Book Notes : Lean B2B","My notes and highlights from Lean B2B by Étienne Garbugli on assessing markets, building MVPs, and selling to businesses.",[265,569],"Entrepreneurship","2022-07-02",{"path":572,"title":573,"description":574,"categories":575,"draft":234,"year":577,"series":6},"\u002Fblog\u002Fnotes-lets-talk-money","Book Notes : Let's Talk Money","My notes and highlights from Let's Talk Money by Monica Halan on managing personal finances and savings.",[265,576],"Personal Finance","2021-02-26",{"path":579,"title":580,"description":581,"categories":582,"draft":234,"year":583,"series":6},"\u002Fblog\u002Fnotes-obviously-awesome","Book Notes : Obviously Awesome","My notes and highlights from Obviously Awesome by April Dunford on product positioning and marketing strategy.",[265,550],"2020-04-26",{"path":585,"title":586,"description":587,"categories":588,"draft":234,"year":590,"series":6},"\u002Fblog\u002Fnotes-refactoring-ui","Book Notes: Refactoring UI","My notes and highlights from Refactoring UI by Adam Wathan and Steve Schoger, full of practical design tips for engineers.",[265,589],"Design","2020-05-09",{"path":592,"title":593,"description":594,"categories":595,"draft":234,"year":596,"series":6},"\u002Fblog\u002Fnotes-rework","Book Notes: Rework","My notes and highlights from Rework by Jason Fried and David Heinemeier Hansson on a better way to succeed in business.",[265,550],"2021-04-14",{"path":598,"title":599,"description":600,"categories":601,"draft":234,"year":603,"series":6},"\u002Fblog\u002Fone-on-one-meetings","Guide to Effective 1:1 Meetings","One on One meetings are important for your personal & professional growth. Learn how to master 1:1s with your manager and peers.",[602,252],"Career","2023-03-05",{"path":605,"title":606,"description":607,"categories":608,"draft":234,"year":609,"series":6},"\u002Fblog\u002Fpersonal-okrs","Personal OKRs for Success","Why one should set personal OKRs and how to achieve success with them",[252,266],"2020-06-27",{"path":611,"title":612,"description":613,"categories":614,"draft":234,"year":616,"series":6},"\u002Fblog\u002Fpoker-tips","Poker Tips: Johns Hopkins Poker Class","Notes from Johns Hopkins poker course. This guide will help you improve in Poker and win some large pots.",[266,615],"Poker","2020-06-13",{"path":618,"title":619,"description":620,"categories":621,"draft":234,"year":622,"series":6},"\u002Fblog\u002Fpomodoro","Get work done: The Pomo Way","Learn to focus and get productive by following the Pomodoro Technique",[252],"2020-10-24",{"path":624,"title":625,"description":626,"categories":627,"draft":234,"year":628,"series":6},"\u002Fblog\u002Fpostgres-constraints","Postgres Constraints","Constraints are line of defense for database. Explore various types of constrainsts in postgres",[231,232],"2020-11-07",{"path":630,"title":631,"description":632,"categories":633,"draft":234,"year":634,"series":6},"\u002Fblog\u002Fppf-explained","PPF Explained","Learn basics about Public Provident Fund and why you should invest",[266,576],"2020-12-24",{"path":636,"title":637,"description":638,"categories":639,"draft":234,"year":640,"series":6},"\u002Fblog\u002Fproductivity-chrome-extensions","Boost Productivity with Chrome Extensions","Utitizing chrome extensions to boost your productivity!",[252,275,274],"2020-04-24",{"path":642,"title":643,"description":644,"categories":645,"draft":234,"year":646,"series":6},"\u002Fblog\u002Fproductivity-in-vscode","Improve your productivity with VS Code","Key VS Code features like the integrated terminal, shortcuts, and extensions that improved my everyday productivity.",[252,232],"2020-03-12",{"path":648,"title":649,"description":650,"categories":651,"draft":234,"year":652,"series":6},"\u002Fblog\u002Freading-101","Improving Reading 101","Why reading matters, how to build a reading habit, and what to read next - from my own journey into books.",[265,266],"2020-04-04",{"path":654,"title":655,"description":656,"categories":657,"draft":234,"year":658,"series":6},"\u002Fblog\u002Freverse-proxy","Understanding Reverse Proxy","Learn about reverse proxy, how it is different from forward proxy and explore advantages of using it in system design.",[282,232],"2021-10-03",{"path":660,"title":661,"description":662,"categories":663,"draft":234,"year":664,"series":6},"\u002Fblog\u002Frunning-periodic-background-task-golang","Running periodic background tasks in Golang","How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.",[230,232],"2019-11-21",{"path":666,"title":667,"description":668,"categories":669,"draft":234,"year":670,"series":6},"\u002Fblog\u002Fsessions-in-golang","Sessions using Golang and Redis","How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.",[230,231,232],"2020-02-25",{"path":672,"title":673,"description":674,"categories":675,"draft":234,"year":676,"series":6},"\u002Fblog\u002Fsolid-dry-kiss-yagni","Solid Dry Kiss Yagni","An introduction to the SOLID, DRY, KISS, and YAGNI principles and how they help you write cleaner, robust code.",[289],"2020-07-17",{"path":678,"title":679,"description":680,"categories":681,"draft":234,"year":682,"series":6},"\u002Fblog\u002Fstack-in-golang","Implement Stack in Golang","Learn how to implement stack data structure in Golang (Full code)",[230,232],"2020-09-14",{"path":684,"title":685,"description":686,"categories":687,"draft":234,"year":688,"series":6},"\u002Fblog\u002Fstart-oss-today","Start your Open Source journey today","Start your OSS journey with intro to GIT. Participate in Hacktoberfest!",[379,232],"2020-09-19",{"path":690,"title":691,"description":692,"categories":693,"draft":234,"year":695,"series":6},"\u002Fblog\u002Fsticky-social-bar","Sticky social share component in HTML","Learn how to build a social media sharing component in HTML and add it to your website.",[232,694],"Frontend","2021-02-05",{"path":697,"title":698,"description":699,"categories":700,"draft":234,"year":701,"series":6},"\u002Fblog\u002Fterm-insurance","Term insurance Simplified","Everything you need to know before you buy a term insurance.",[266,576],"2020-11-29",{"path":703,"title":704,"description":705,"categories":706,"draft":234,"year":708,"series":6},"\u002Fblog\u002Fterminal-output-with-redirection","Handling terminal outputs with Redirection","Learn how to handle terminal outputs with Redirection and saving it to files",[525,707,232],"Terminal","2020-09-06",{"path":710,"title":711,"description":712,"categories":713,"draft":234,"year":714,"series":6},"\u002Fblog\u002Fthink-and-grow-rich","Book Notes: Think and Grow Rich","My notes and highlights from Think and Grow Rich by Napoleon Hill, covering its process for building wealth.",[265,266],"2020-05-19",{"path":241,"title":5,"description":233,"categories":716,"draft":234,"year":244,"series":6},[230,231,232],{"path":718,"title":719,"description":720,"categories":721,"draft":234,"year":722,"series":6},"\u002Fblog\u002Fwaitgroups-in-golang","WaitGroups in Golang","Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.",[230,232],"2022-05-31",{"path":724,"title":725,"description":726,"categories":727,"draft":234,"year":729,"series":6},"\u002Fblog\u002Fwhat-i-use","What I Use: Products and Softwares","List of what I use in my day to day life ranging from terminal, editors, softwares, devices to accessories",[266,728],"Tech","2024-06-01",{"path":731,"title":732,"description":733,"categories":734,"draft":234,"year":735,"series":6},"\u002Fblog\u002Fyear-in-review-2020","Year in Review: 2020","It's a wrap! 2020 was a crazy year, See how my year went!",[266],"2020-12-31",{"path":737,"title":738,"description":739,"categories":740,"draft":234,"year":741,"series":6},"\u002Fblog\u002Fyear-in-review-2021","Year in Review: 2021","It's a wrap! 2021 was a mixed bag, full of ups and downs. Key Goal for 2022: Start now!",[266],"2021-12-31",1788773188227]