Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
wendelin
Commits
8d4a8450
Commit
8d4a8450
authored
Apr 06, 2018
by
Julien Muchembled
Committed by
Laurent S
Apr 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! DataStream: queue ingested data in order to append bigger chunks
parent
bb816d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
...emplateItem/portal_components/document.erp5.DataStream.py
+4
-3
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/Alarm_zDataStreamQueue.sql
...tem/portal_skins/erp5_wendelin/Alarm_zDataStreamQueue.sql
+1
-1
No files found.
bt5/erp5_wendelin/DocumentTemplateItem/portal_components/document.erp5.DataStream.py
View file @
8d4a8450
...
...
@@ -69,6 +69,7 @@ class DataStream(BigFile):
q
=
self
.
getPortalObject
().
erp5_sql_connection
().
query
r
=
q
(
'SELECT id, chunk FROM data_stream_queue WHERE uid=%s ORDER BY id'
%
self
.
getUid
(),
max_rows
=
0
)[
1
]
self
.
_appendData
(
''
.
join
(
x
[
1
]
for
x
in
r
))
q
(
'DELETE FROM data_stream_queue WHERE id IN (%s)'
%
','
.
join
(
str
(
x
[
0
])
for
x
in
r
))
if
r
:
self
.
_appendData
(
''
.
join
(
x
[
1
]
for
x
in
r
))
q
(
'DELETE FROM data_stream_queue WHERE id IN (%s)'
%
','
.
join
(
str
(
x
[
0
])
for
x
in
r
))
bt5/erp5_wendelin/SkinTemplateItem/portal_skins/erp5_wendelin/Alarm_zDataStreamQueue.sql
View file @
8d4a8450
SELECT
catalog
.
uid
,
path
FROM
data_stream_queue
LEFT
JOIN
catalog
USING
(
uid
)
\ No newline at end of file
SELECT
DISTINCT
catalog
.
uid
,
path
FROM
data_stream_queue
LEFT
JOIN
catalog
USING
(
uid
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment