This article is now published on my website: A one-off git repo server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prereq: underscore.js and jquery loaded | |
var p1 = $.Deferred(); | |
var p2 = $.Deferred(); | |
// We want something that chains promises, so something like... | |
//p1.done( | |
// function addNext() { | |
// p2.done( | |
// function addNext() { |
$ EXPLAIN SELECT base.* FROM base LEFT JOIN relation ON relation.base_id = base.id WHERE relation.id IS NULL ORDER BY id LIMIT 1000;
QUERY PLAN
---------------------------------------------------------------------------------------------------
Limit (cost=755508.94..755508.95 rows=1 width=54)
-> Sort (cost=755508.94..755508.95 rows=1 width=54)
Sort Key: base.id
-> Hash Left Join (cost=44.65..755508.93 rows=1 width=54)
Hash Cond: (base.id = relation.base_id)