Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
1502a925
Commit
1502a925
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
up
parent
da47cc8c
No related branches found
No related tags found
No related merge requests found
Pipeline
#44651
failed
1 year ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
create_many.sql
+22
-0
22 additions, 0 deletions
create_many.sql
docker-compose.yml
+25
-0
25 additions, 0 deletions
docker-compose.yml
note
+2
-0
2 additions, 0 deletions
note
with
49 additions
and
0 deletions
create_many.sql
0 → 100644
+
22
−
0
View file @
1502a925
DELIMITER
//
DROP
PROCEDURE
IF
EXISTS
creater
//
CREATE
PROCEDURE
creater
(
p1
INT
)
BEGIN
DELETE
FROM
double_data
WHERE
entity_id
>=
10000
;
DELETE
FROM
entities
WHERE
id
>=
10000
;
SET
@
start
=
10000
;
SET
@
x
=
@
start
;
REPEAT
SET
@
x
=
@
x
+
1
;
insert
into
entities
(
id
)
VALUES
(
@
x
);
UNTIL
@
x
>
p1
+@
start
END
REPEAT
;
SET
@
x
=
0
;
REPEAT
SET
@
x
=
@
x
+
1
;
SET
@
eeid
=
FLOOR
(
@
start
+
1
+
RAND
()
*
(
p1
+
1
));
insert
into
double_data
(
domain_id
,
entity_id
,
property_id
,
value
)
VALUES
(
0
,
@
eeid
,
278
,
RAND
());
UNTIL
@
x
>
p1
*
10
END
REPEAT
;
END
//
CALL
creater
(
10
)
//
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
25
−
0
View file @
1502a925
version
:
'
3.6'
services
:
sqldb
:
image
:
mariadb:10.5
volumes
:
-
type
:
volume
source
:
"
caosdb-sqldata"
target
:
/var/lib/mysql
# using old short syntax here to create missing config directories
#- $CUSTOM_DIR/mariadb.conf.d:/etc/mysql/mariadb.conf.d:ro
environment
:
MYSQL_ROOT_PASSWORD
:
caosdb1234
networks
:
# available on port 3306, host name 'sqldb'
-
caosnet
ports
:
-
3306:3306
# A well-defined network for caosdb
volumes
:
caosdb-sqldata
:
networks
:
caosnet
:
driver
:
bridge
This diff is collapsed.
Click to expand it.
note
0 → 100644
+
2
−
0
View file @
1502a925
select group_concat(entities.id), entities.acl from entities inner join 94fc27735e481e8a76cca14953b1ab82 on entities.id=94fc27735e481e8a76cca14953b1ab82.id group by entities.acl;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment