@things-factory/dataset 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/assets/data-samples.jpg +0 -0
- package/package.json +12 -12
package/README.md
CHANGED
@@ -7,3 +7,28 @@ At the early stage, partition keys are desinged for dynamic partitioning for Ath
|
|
7
7
|
Partition keys are related for S3 request limitations.
|
8
8
|
> __3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD requests per second per prefix in a bucket__
|
9
9
|
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance.html
|
10
|
+
|
11
|
+
### :warning: This concept will be deprecated.
|
12
|
+
|
13
|
+
Now partition keys are fixed
|
14
|
+
- domain
|
15
|
+
- datasetid
|
16
|
+
- date: local time date
|
17
|
+
- workdate: working date
|
18
|
+
- workshift
|
19
|
+
|
20
|
+
## PostgreSQL query for dataset
|
21
|
+
```
|
22
|
+
select
|
23
|
+
data::json#>>'{product,0}' as product,
|
24
|
+
data::json#>>'{operation,0}' as operation
|
25
|
+
from data_samples ds
|
26
|
+
where 1=1
|
27
|
+
and data_set_id = 'f1e394cb-9ace-4686-af14-817c619ae512'
|
28
|
+
and data_set_version = 3
|
29
|
+
and data::json#>>'{operation,0}' = '세척'
|
30
|
+
order by created_at desc;
|
31
|
+
```
|
32
|
+
|
33
|
+
Reference.
|
34
|
+
- [1] https://www.postgresql.org/docs/11/functions-json.html
|
package/assets/data-samples.jpg
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.1",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -24,24 +24,24 @@
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@operato/app": "^1.0.
|
28
|
-
"@operato/data-grist": "^1.0.
|
27
|
+
"@operato/app": "^1.0.1",
|
28
|
+
"@operato/data-grist": "^1.0.1",
|
29
29
|
"@operato/dataset": "^1.0.0",
|
30
30
|
"@operato/graphql": "^1.0.0",
|
31
31
|
"@operato/grist-editor": "^1.0.0",
|
32
32
|
"@operato/i18n": "^1.0.0",
|
33
|
-
"@operato/layout": "^1.0.
|
34
|
-
"@operato/shell": "^1.0.
|
33
|
+
"@operato/layout": "^1.0.1",
|
34
|
+
"@operato/shell": "^1.0.1",
|
35
35
|
"@operato/styles": "^1.0.0",
|
36
|
-
"@operato/utils": "^1.0.
|
37
|
-
"@things-factory/auth-base": "^5.0.
|
38
|
-
"@things-factory/aws-base": "^5.0.
|
39
|
-
"@things-factory/board-service": "^5.0.
|
36
|
+
"@operato/utils": "^1.0.1",
|
37
|
+
"@things-factory/auth-base": "^5.0.1",
|
38
|
+
"@things-factory/aws-base": "^5.0.1",
|
39
|
+
"@things-factory/board-service": "^5.0.1",
|
40
40
|
"@things-factory/env": "^5.0.0",
|
41
|
-
"@things-factory/shell": "^5.0.
|
42
|
-
"@things-factory/work-shift": "^5.0.
|
41
|
+
"@things-factory/shell": "^5.0.1",
|
42
|
+
"@things-factory/work-shift": "^5.0.1",
|
43
43
|
"cron-parser": "^4.3.0",
|
44
44
|
"moment-timezone": "^0.5.34"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "47225f76058999bb8bb075ac960cfb24f058093f"
|
47
47
|
}
|