TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NoSQL in SQL

35 pointsby BKCandacealmost 11 years ago

5 comments

programminggeekalmost 11 years ago
I recently just made what I think is a pretty neat pattern for reporting on a project that we need time series data calculations for.<p>Essentially I already have a giant precalculation service for all the needed calculations on all the data underneath a parent entity. So, I serialize that using ruby marshall and then use lz4 to compress it before storing to db.<p>Its actually faster and smaller than using json strings in ruby. The whole tree structure for each entity was 200-400k as raw json strings. It took something like 300ms to serialize to json. I was able to do the ruby marshal and the LZ4 HC compression in something like 20-40ms and it drops the size down to more like 15-30k.<p>JSON is a pretty cool format, but it&#x27;s a lot slower in ruby than you might realize and it takes up a lot of space.
评论 #7887078 未加载
gewekealmost 11 years ago
Thanks for posting this. For what it&#x27;s worth, I&#x27;m the author of this talk and the one pictured in the video.<p>I&#x27;m flattered it&#x27;s getting so much attention (I like having my ideas spread!), although there&#x27;s one thing that confuses me. I&#x27;ve never heard of Hakka Labs, nor did I post the talk, video, or my bio on their site (although their treatment sure looks like I did) -- as far as I can tell, they grabbed it from the site of the SFRails Meetup at which I gave it and posted it online. I&#x27;m grateful for the exposure, but some notification or clear notice that I&#x27;m not affiliated with Hakka Labs (whatever&#x2F;whoever they are) would have been nice.
评论 #7889127 未加载
alphadevxalmost 11 years ago
The Memcache plugin in MySQL 5.6 provides a neat way to do NoSQL into RDBMS storage: <a href="http://dev.mysql.com/doc/refman/5.6/en/innodb-memcached.html" rel="nofollow">http:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;refman&#x2F;5.6&#x2F;en&#x2F;innodb-memcached.html</a>
RVijay007almost 11 years ago
For any that are interested, Couchbase Mobile is essentially, in its current form, a NoSQL database in SQLite. They might port to ForestDB in the future though, but that&#x27;s an implementation detail.
mantrax5almost 11 years ago
It&#x27;s always interesting to observe my bad developer practices (such as stuffing JSON in SQL table columns) become flexible &quot;architectural patterns&quot; for building &quot;schema-free, scalable data storage&quot;.
评论 #7886806 未加载
评论 #7886801 未加载
评论 #7887634 未加载
评论 #7887247 未加载
评论 #7887482 未加载