Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit ca654ce

Browse files
author
Nick Gauthier
committed
readme to markdown
1 parent 5149e75 commit ca654ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README renamed to README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
= KnowSQL
1+
# KnowSQL
22

3-
Goal:
3+
## Goal
44
1) you don't know what you don't know
55
awareness > complete comprehension
66
open the fire hydant: you don't have to drink it all, but I will soak you
77
2) Easier
88

9-
== Chapter 1: Indexing
9+
## Chapter 1: Indexing
1010
* Basic index (bench - show seq vs idx)
1111
* unique index (faster than rails - bench)
1212
* index on expressions (w/ unique)
@@ -16,14 +16,14 @@ Goal:
1616
* foreign keys
1717
* polymorphic foreign keys
1818

19-
== Chapter 2: Fancy Queries
19+
## Chapter 2: Fancy Queries
2020
* Joins w/ :include and :select for single query access
2121
* complex aggregation (partition)
2222
* nested queries (Subquery)
2323
* pattern matching (LIKE and also regex)
2424
* views (like for search, or for a twitter timeline)
2525

26-
== Chapter 3: Full Text Search
26+
## Chapter 3: Full Text Search
2727
* Simple single column
2828
* Show in rails (simpler setup than any external indexer)
2929
* Multi-column
@@ -36,7 +36,7 @@ Goal:
3636
* Fast (bench vs mongo? http://www.mongodb.org/display/DOCS/Full+Text+Search+in+Mongo )
3737
* Fast (bench vs solr? http://lucene.apache.org/solr/features.html )
3838

39-
== Chapter 4: Geospatial
39+
## Chapter 4: Geospatial
4040
* Setup PostGIS (w/ ubuntu repo)
4141
* Easy migration to add a point to something
4242
* Geospatial index
@@ -45,18 +45,18 @@ Goal:
4545
* Fast (twitter? earthquakes?)
4646
* Fast (bench vs mongo geospatial? http://www.mongodb.org/display/DOCS/Geospatial+Indexing )
4747

48-
== Chapter 5: Shoulders of Giants
48+
## Chapter 5: Shoulders of Giants
4949
* auto_explain (like slow query log) http://www.postgresql.org/docs/8.4/static/auto-explain.html
5050
* chkpass (leave pw encryption to db) http://www.postgresql.org/docs/8.4/static/chkpass.html
5151
* plus there is pgcrypto for tons of other cryptography functions
52-
* hstore (hashes in db => easy search and index) http://www.postgresql.org/docs/8.4/static/hstore.html
52+
* hstore (hashes in db #> easy search and index) http://www.postgresql.org/docs/8.4/static/hstore.html
5353
* intarray (arrays in db) http://www.postgresql.org/docs/8.4/static/intarray.html
5454
* isn (isbn, upc, ismn, issn ... validation, check bits, etc) http://www.postgresql.org/docs/8.4/static/isn.html
5555
* ltree (tree structure - useful for category names) http://www.postgresql.org/docs/8.4/static/ltree.html
5656
* xml2 (xml validation and xpath querying) http://www.postgresql.org/docs/8.4/static/xml2.html
5757

5858

59-
== Chapter 6
59+
## Chapter 6
6060

6161

6262
* rails structure loading?

0 commit comments

Comments
 (0)