Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How Postgres chooses which index to use for a query. Parent comment
SELECT * FROM js_query('...');
Where the query is a JS snippet that has access to low level access methods, e.g.:
var results = []; var cursor = myTable.indexes.foo.seek('item-23'); while (cursor.next()) { results.push(cursor.row()); } return results;
Since I didn't have enough time I dropped the idea, but it'd be awesome if somebody hacked this up at some point : ).
There are no comments on this comment yet.
SELECT * FROM js_query('...');
Where the query is a JS snippet that has access to low level access methods, e.g.:
However, it turns out this would be a lot of work and it's difficult to make it work with features like row level security.Since I didn't have enough time I dropped the idea, but it'd be awesome if somebody hacked this up at some point : ).