This file contains hidden or 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
1) instead of returning SETOF composite_type or SETOF RECORD (OUT col type) return TABLE (col type,etc) and just yield. | |
2) For long queries in plpy.execute use triple quotes for multiline queries | |
3) use explain [query] to figure out what is taking so much time on a query then build indexes to remove the "sequential scans" | |
This file contains hidden or 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
/** | |
* Created by urvish on 8/20/14. | |
*/ | |
/* | |
Copyright Alex Leone, David Nufer, David Truong, 2011-03-11. kathack.com | |
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0); | |
*/ | |
var BORDER_STYLE = "1px solid #bbb", |