Skip to content

Commit

Permalink
GH #909 - pubsub_message.data should hold at most 2 GB worth of data.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Jan 14, 2019
1 parent 09d3c14 commit 4a87302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/zato-common/src/zato/common/odb/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ class PubSubMessage(Base):
expiration_time = Column(Numeric(20, 7, asdecimal=False), nullable=True)
last_updated = Column(Numeric(20, 7, asdecimal=False), nullable=True)

data = Column(Text(), nullable=False)
data = Column(Text(2000000000), nullable=False) # Max size = 2 GB
data_prefix = Column(Text(), nullable=False)
data_prefix_short = Column(String(200), nullable=False)
data_format = Column(String(200), nullable=False, server_default=PUBSUB.DEFAULT.DATA_FORMAT)
Expand Down

0 comments on commit 4a87302

Please sign in to comment.