64°F

Aaron Parecki

  • Articles
  • Notes
  • Photos

#database

  • Hosting SQLite databases on Github Pages - (or any static file hoster) - phiresky's blog (phiresky.github.io)
    Sun, May 2, 2021 4:37pm -07:00 #sqlite #static #web #sql #database
  • The New Stack https://twitter.com/thenewstack
    Mobile Development Gains in Databases and Authentication https://bit.ly/3bxogWm @bcamerongain @alexwilliams @IanPWard @aaronpk @rdegges @okta #Sponsored #mobile #database #Authentication
    Portland, Oregon • 54°F
    Wed, Mar 10, 2021 11:37pm +00:00 (liked on Wed, Mar 10, 2021 3:56pm -08:00) #Sponsored #mobile #database #Authentication
  • Aaron Parecki
    I just had a moment of realization, and took less than an hour to implement a fix for this website that has been bugging me for at least a year.

    I now cache a hash of the file contents in the database, and when viewing a post, if the hash has changed, I rebuild the DB index. This saves me the step of going in and running the "rebuild index" command when I hand-edit files.
    Portland, Oregon, USA
    Tue, May 23, 2017 6:43pm -07:00 #p3k #database
  • The Accidental DBA – charity.wtf (charity.wtf)
    Wed, Feb 1, 2017 10:48am -08:00 #database #mongodb
  • http://rhiaro.co.uk/2016/04/fixed-websitelast
    Aaron Parecki
    I'm adding this to http://indiewebcamp.com/database-antipattern ;-)
    Portland, Oregon, USA
    Sat, Apr 30, 2016 1:59pm -07:00 #database
  • Several Days of Server Migrations Later...

    I just spent two days finishing migrating the last of my old websites and services off my old server and into new homes. This project has been on my todo list for over two years, and I've been making slow progress since then, mostly by spending a day on it here and there.I finally finished moving the last things off the server today. The last two things left were my Twitter streaming search script and a really old MediaWiki website. Both were running on a 6-year old operating system, and under deprecated versions of Ruby and PHP. The MediaWiki instance had been EOL since 2012. The OpenSSL library was so old the Heartbleed bug hadn't even been written yet. Other things on that server were a Gitlab install (which I replaced with Gogs in February), my own SSL root authority (which is significantly less useful now that Letsencrypt makes certificates free and easy), an old web app I haven't used since 2009, and many cobbled together scripts.This was quite a painful process all told, and I would like to avoid getting into this this situation in the future. Here are some things I'm planning to do that will help make the upgrade process easier in the future.Upgrade regularlySpend the time it takes to upgrade the whole server (OS as well as application dependencies) every 3-6 months, instead of letting the machine get to be several years old. The whole reason I got into this situation in the first place is the OS was so old incremental upgrades were no longer possible. Updating the OS, PHP/Ruby versions, and applications regularly means smaller incremental changes rather than getting into a situation where your app no longer runs because the scripting language changed so much since the last upgrade.Separate the web and database serversI've had a separate database server for a long time. The main benefit this gives me is I'm able to move the source code for a website to a new server without having to also worry about migrating the database at the same time. It's one less moving part in the migration process, and I will continue to do this in the future.Productize everythingSome of these projects and websites were so old that I didn't actually have them in Git repos yet. Some of them were in Subversion, some were just piles of files on disk. A few of them shared a common set of files on the server, rather than using any sort of package management and proper dependency chain. Of course my more recent projects are much better packaged, but I had forgotten I had not always done things this way. Making each project a self-contained application with its own Git repo makes it easier to move them around to new servers later.Avoid using servers in the first placeThese days, we have many options for running applications without dealing with the underlying operating system. Google AppEngine (on which I currently run indiewebify.me and xray.p3k.io), Amazon Lambda (where I run ca3db), and Heroku to name a few. Once a service is running in infrastructure such as these, you can forget worrying about the underlying operating system updates, and focus on your application logic. The service providers will handle everything under the hood and you can forget that upgrading OpenSSL is a thing that needs to happen.
    continue reading...
    1 like
    Tue, Apr 5, 2016 7:02pm -07:00 #indieweb #server #migration #ops #database
  • How We Partitioned Airbnb's Main Database in Two Weeks - Airbnb Engineering (nerds.airbnb.com)
    Tue, Oct 6, 2015 10:13pm -07:00 #scaling #ops #database #mysql
  • Our Slack Wiki — Why Not? — Medium (medium.com)
    Our wiki software reads and writes Markdown files from the filesystem. With 100+ pages on our wiki, we can still do near instantaneous full text search. Plus, changes to the content can continue to be tracked using Git and backed up automatically to Github. And there’s no database server to worry about. And if we ever want to migrate to another system, we’ve got all of our data in simple, human readable text files.
    Thu, May 21, 2015 5:06pm -07:00 #wiki #slack #database
  • pgcli (pgcli.com)
    Pgcli is a command line interface for Postgres with auto-completion and syntax highlighting.
    Tue, Jan 6, 2015 3:10pm -08:00 #postgres #resources #linux #database
  • torodb/torodb (github.com)
    ToroDB is an open source, document-oriented, JSON database that runs on top of PostgreSQL.... It speaks natively the MongoDB protocol, meaning that it can be used with any mongo-compatible client.
    Wed, Oct 29, 2014 8:46am -07:00 #postgres #mongodb #database #db
  • My Favorite Database is the Network (lucumr.pocoo.org)
    Instead of storing the data in the database, you can just store small data like this on the network. What I mean by that is that instead of storing it, you let the client transmit the data back to you when you need it again.
    Tue, Sep 16, 2014 12:19pm -07:00 #database
  • Run SQL on JSON files -- without any data loads (citusdata.com)
    Sun, Aug 24, 2014 8:59am -07:00 #database #json #sql
  • Example disk-based storage of a QuadTree index. (gist.github.com)
    Sat, Aug 9, 2014 9:22pm -07:00 #algorithm #database #index #quadtree
  • Damn Cool Algorithms: Spatial indexing with Quadtrees and Hilbert Curves (blog.notdot.net)
    Sat, Aug 9, 2014 9:22pm -07:00 #algorithm #database #geo #index #quadtree #spatial
  • Converting MySQL to PostgreSQL (en.wikibooks.org)
    Sun, Feb 10, 2013 3:17pm -08:00 #convert #database #mysql #postgres #tips #tutorial
  • Taps for Easy Database Transfers (adam.heroku.com)
    Sun, Feb 10, 2013 3:16pm -08:00 #database #mysql #postgres #sqlite #taps #tools #utilities
  • A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5 (github.com)
    Wed, Dec 26, 2012 3:18pm -08:00 #database #orm #php
  • Aaron Parecki
    May have just found my new favorite PHP ORM https://github.com/j4mie/idiorm
    Portland, OR, USA
    Wed, Dec 26, 2012 3:16pm -08:00 #php #orm #database
  • Stupid PostgreSQL Tricks: Writable Views (legitimatesounding.com)
    Tue, Oct 16, 2012 4:13pm -07:00 #database #db #postgres
  • Window Functions (www.postgresql.org)
    Sat, Aug 25, 2012 9:56am -07:00 #database #documentation #postgres #sql #tutorial
older

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv