<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av" -->

---
title: Dolt Gets a cgo Dependency | daily.dev
description: Dolt, a MySQL-compatible SQL database written in Go, recently added a cgo dependency for better disk compression. The post discusses the trade-offs, challenges...
canonical: https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Dolt Gets a cgo Dependency | daily.dev
og:description: Dolt, a MySQL-compatible SQL database written in Go, recently added a cgo dependency for better disk compression. The post discusses the trade-offs, challenges...
og:url: https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av
og:image: https://api.daily.dev/og/posts/O4d5G78AV.png
og:image:alt: Dolt Gets a cgo Dependency
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Dolt Gets a cgo Dependency

**[Awesome Go](https://daily.dev/sources/awego)** · 10 min read · 6 upvotes · 1 comments

## Summary

Dolt, a MySQL-compatible SQL database written in Go, recently added a cgo dependency for better disk compression. The post discusses the trade-offs, challenges for developers, cross-compilation issues, and other considerations of using cgo in Go projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.dolthub.com/blog/2024-05-01-cgo-tradeoffs>

## Community discussion

Top comments from developers on daily.dev.

**@kapil62** · 0 upvotes

> hello'

---

Tags: [#compression](https://daily.dev/tags/compression), [#database](https://daily.dev/tags/database), [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Dolt Gets a cgo Dependency","url":"https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av"},"datePublished":"2024-05-02T21:00:44.887Z","dateModified":"2026-10-14T02:31:12.328Z","description":"Dolt, a MySQL-compatible SQL database written in Go, recently added a cgo dependency for better disk compression. The post discusses the trade-offs, challenges...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a33e15bcf8918540764b4075e457c3ae?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a33e15bcf8918540764b4075e457c3ae?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Awesome Go","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Awesome Go","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/awego","url":"https://daily.dev/sources/awego"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"compression,database,golang","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awesome Go","item":"https://daily.dev/sources/awego"},{"@type":"ListItem","position":3,"name":"Dolt Gets a cgo Dependency"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/dolt-gets-a-cgo-dependency-o4d5g78av","comment":[{"@type":"Comment","text":"hello’","datePublished":"2024-05-03T04:24:08.889Z","url":"https://daily.dev/posts/O4d5G78AV#c-l98nhs40T","author":{"@type":"Person","name":"kapil","url":"https://daily.dev/kapil62","image":"https://lh3.googleusercontent.com/a/ACg8ocJnyS3035bcTKOxTJUlTm5hO6ig_OB7y-DoPZYWf7-p=s96-c"}}]}
```

