Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9348252
swh-dedup-blocks.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
544 B
Subscribers
None
swh-dedup-blocks.sql
View Options
CREATE
DOMAIN
sha1
AS
bytea
CHECK
(
length
(
value
)
=
20
);
CREATE
TABLE
content
(
id
sha1
PRIMARY
KEY
,
-- SHA1 checksum
length
integer
);
CREATE
TABLE
chunk
(
id
sha1
PRIMARY
KEY
,
-- SHA1 checksum
length
integer
);
CREATE
TABLE
chunked_content
(
content_id
sha1
REFERENCES
content
(
id
),
chunk_id
sha1
REFERENCES
chunk
(
id
),
position
integer
);
CREATE
INDEX
ON
chunked_content
(
content_id
);
CREATE
UNIQUE
INDEX
ON
chunked_content
(
content_id
,
chunk_id
,
position
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 6:20 PM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241749
Attached To
rDSNIP Code snippets
Event Timeline
Log In to Comment