First round of temp patches to allow EMS to handle very large events.
This commit is contained in:
parent
477ae9243f
commit
987719b1c1
2 changed files with 4 additions and 3 deletions
|
|
@ -690,6 +690,7 @@ create table EventManagementSystem_products (
|
|||
approved tinyint,
|
||||
sequenceNumber int(11),
|
||||
imageId varchar(22) binary,
|
||||
prerequisiteId varchar(22) binary,
|
||||
primary key(productId)
|
||||
)
|
||||
SQL2
|
||||
|
|
@ -717,7 +718,6 @@ my $sql5 = <<SQL5;
|
|||
|
||||
create table EventManagementSystem_prerequisites (
|
||||
prerequisiteId varchar(22) binary not null,
|
||||
productId varchar(22) binary,
|
||||
operator varchar(100),
|
||||
primary key(prerequisiteId)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2900,8 +2900,9 @@ sub view {
|
|||
from products as p, EventManagementSystem_products as e
|
||||
where
|
||||
p.productId = e.productId and approved=1
|
||||
and e.assetId =".$self->session->db->quote($self->get("assetId"))."
|
||||
and p.productId not in (select distinct(productId) from EventManagementSystem_prerequisites) order by sequenceNumber";
|
||||
and e.assetId =".$self->session->db->quote($self->get("assetId"))."
|
||||
and p.prerequisiteId is NULL";
|
||||
#and p.productId not in (select distinct(productId) from EventManagementSystem_prerequisites) order by sequenceNumber";
|
||||
|
||||
my $p = WebGUI::Paginator->new($self->session,$self->getUrl,$self->get("paginateAfter"));
|
||||
$p->setDataByQuery($sql);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue