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
CREATE OR REPLACE FUNCTION mxact_create(SCALE integer) RETURNS void AS $body$ | |
declare | |
default_rows_per_scale integer := 100000; | |
gap integer := 3000; | |
range integer := 100; | |
create_base_id integer; | |
segment_id integer; | |
begin | |
-- Generate a random number to use as a segment to offset concurrent connections from hitting the same exact range of ids | |
select (trunc(extract(millisecond from current_timestamp) * default_rows_per_scale, 0) % (100000 * scale)) into create_base_id; |
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
begin; | |
select mxact_create(:scale); | |
-- select mxact_create_and_select(:scale); | |
commit; |
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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+q", | |
"command": "editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.peekDefinition", |
OlderNewer