-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
insert into account (login) | ||
select 'account_'||idx | ||
from generate_series(0, 1000000) idx; | ||
|
||
insert into list (account_id, name) | ||
select | ||
account.id as account_id, | ||
md5('list_'||account.id||'_'||idx) as name | ||
from account join generate_series(0, 1000000) idx on true; | ||
|
||
insert into task (list_id, name, description) | ||
select | ||
list.id as list_id, | ||
md5('list_'||list.id||'_'||idx||'_name') as name, | ||
md5('list_'||list.id||'_'||idx||'_description') as description | ||
from list join generate_series(0, 1000000) idx on true; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
FROM postgres:14.2-bullseye | ||
|
||
COPY *.sql /docker-entrypoint-initdb.d/ | ||
|