Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
6d791151
Commit
6d791151
authored
8 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-4192 : Bugfix, Batch InQuery class to avoid postgres driver limit.
SVN: 37148
parent
5e132b87
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
+18
-0
18 additions, 0 deletions
...sx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
with
18 additions
and
0 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
+
18
−
0
View file @
6d791151
...
@@ -146,6 +146,7 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
...
@@ -146,6 +146,7 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
@Override
@Override
public
Object
doInHibernate
(
Session
session
)
throws
HibernateException
public
Object
doInHibernate
(
Session
session
)
throws
HibernateException
{
{
InQuery
inQuery
=
new
InQuery
<
Long
,
Number
>();
InQuery
inQuery
=
new
InQuery
<
Long
,
Number
>();
List
<
Number
>
list
=
List
<
Number
>
list
=
inQuery
.
withBatch
(
session
,
"select distinct samp_id from data where samp_id in (:sampleIds)"
,
"sampleIds"
,
sampleIds
,
inQuery
.
withBatch
(
session
,
"select distinct samp_id from data where samp_id in (:sampleIds)"
,
"sampleIds"
,
sampleIds
,
...
@@ -1343,6 +1344,23 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
...
@@ -1343,6 +1344,23 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
scheduleDynamicPropertiesEvaluation
(
Arrays
.
asList
(
entity
));
scheduleDynamicPropertiesEvaluation
(
Arrays
.
asList
(
entity
));
}
}
@Override
protected
void
scheduleDynamicPropertiesEvaluation
(
List
<
DataPE
>
dataSets
)
{
List
<
DataPE
>
toUpdate
=
new
ArrayList
<
DataPE
>();
addAllDataSetsAndComponentsRecursively
(
toUpdate
,
dataSets
);
super
.
scheduleDynamicPropertiesEvaluation
(
toUpdate
);
}
private
void
addAllDataSetsAndComponentsRecursively
(
List
<
DataPE
>
resultDataSets
,
List
<
DataPE
>
dataSets
)
{
for
(
DataPE
dataSet
:
dataSets
)
{
resultDataSets
.
add
(
dataSet
);
addAllDataSetsAndComponentsRecursively
(
resultDataSets
,
dataSet
.
getContainedDataSets
());
}
}
@Override
@Override
public
List
<
TechId
>
listDataSetIdsBySampleIds
(
final
Collection
<
TechId
>
samples
)
public
List
<
TechId
>
listDataSetIdsBySampleIds
(
final
Collection
<
TechId
>
samples
)
{
{
...
...
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