<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fatcat/rust/migrations, branch x-attic-preview</title>
<subtitle>[no description]</subtitle>
<id>https://git.bnewbold.net/fatcat/atom?h=x-attic-preview</id>
<link rel='self' href='https://git.bnewbold.net/fatcat/atom?h=x-attic-preview'/>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/'/>
<updated>2018-09-23T02:03:41+00:00</updated>
<entry>
<title>fix isbn13 size check (!)</title>
<updated>2018-09-23T02:03:41+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-23T02:02:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=26f05eaf914a4a967f85f13dab33c65ea53d3f51'/>
<id>urn:sha1:26f05eaf914a4a967f85f13dab33c65ea53d3f51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>container_name (not title), and shrink some BIGINTs</title>
<updated>2018-09-23T00:26:23+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-23T00:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=7c53a08666d28f2a2f4c9572f63ae09a362b017b'/>
<id>urn:sha1:7c53a08666d28f2a2f4c9572f63ae09a362b017b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix CHECK clauses</title>
<updated>2018-09-17T20:56:36+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-17T20:56:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=8baa2d8808797e423829fb040d70206d24b6156e'/>
<id>urn:sha1:8baa2d8808797e423829fb040d70206d24b6156e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>UNIQUE constraint on edits (ident per editgroup)</title>
<updated>2018-09-17T20:21:20+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-17T20:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=5feeb70f930e733587ad7fa33d361cf24602abca'/>
<id>urn:sha1:5feeb70f930e733587ad7fa33d361cf24602abca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use timestamptz (not WITHOUT TIME ZONE)</title>
<updated>2018-09-17T20:19:48+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-17T20:19:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=1c708d6a4ea155710c7f1b752e9bcb01ac75f98d'/>
<id>urn:sha1:1c708d6a4ea155710c7f1b752e9bcb01ac75f98d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CHAR/VARCHAR -&gt; TEXT w/ CHECK</title>
<updated>2018-09-17T20:13:16+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-17T20:13:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=c292aa9ef819ec47bf129ff61686e1be782abf70'/>
<id>urn:sha1:c292aa9ef819ec47bf129ff61686e1be782abf70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update extid columns: varchar size limits, no char columns</title>
<updated>2018-09-16T00:00:12+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-16T00:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=be3a4333c5880f3af1a4e6adbba31a030a5ebc72'/>
<id>urn:sha1:be3a4333c5880f3af1a4e6adbba31a030a5ebc72</id>
<content type='text'>
In PostgreSQL, there is no query or size differences between CHAR,
VARCHAR, and TEXT: they use the same backend. CHAR will pad out with
spaces and VARCHAR enforces a size limit.

The enforced VARCHAR size limit seems like ok defensive
programming/schema here, preventing large values from getting stored for
some columns. I have some FUD concern about fixed-sized identifiers and
indexes, so switching old CHARs (eg, sha1 hex encoded columns) to
VARCHAR instead.
</content>
</entry>
<entry>
<title>use JSONB over JSON</title>
<updated>2018-09-11T02:46:05+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-11T02:46:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=b15fa552e288bec5bbc2b07a3e11bab9235a1e7c'/>
<id>urn:sha1:b15fa552e288bec5bbc2b07a3e11bab9235a1e7c</id>
<content type='text'>
Sort of an impulsive "why not" decision. From earlier tests, expect this
to consume a few % more disk (but not index)... adds a lot more query
flexibility if we want that in the future. Seems worth the price.
</content>
</entry>
<entry>
<title>sql: add an index from cockroach branch</title>
<updated>2018-09-11T02:44:20+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-11T02:44:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=3e1823a4ae0fee443996b10b9d82a9edabc621fa'/>
<id>urn:sha1:3e1823a4ae0fee443996b10b9d82a9edabc621fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove 'IS NOT NULL' identifier index constraints</title>
<updated>2018-09-10T23:46:52+00:00</updated>
<author>
<name>Bryan Newbold</name>
<email>bnewbold@robocracy.org</email>
</author>
<published>2018-09-10T23:46:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bnewbold.net/fatcat/commit/?id=2e335344e59de0ff42f1c2797a4e4ffbf3f4b30b'/>
<id>urn:sha1:2e335344e59de0ff42f1c2797a4e4ffbf3f4b30b</id>
<content type='text'>
These seemed to be resulting in table scans on 404s in QA with postgres
10, despite the adding "IS NOT NULL" WHERE clauses earlier. Query time
was very significant, even for the creator table (1.2 seconds or so on
SSD).

I looked at using hash indices (which have improved in postgres 10),
which could save index size (disk and RAM) and potentially be faster for
these trivial exact lookups, but didn't go for it at this time.
</content>
</entry>
</feed>
