On 12-10-05 11:27 AM, Michael Bayer wrote:
> On Oct 5, 2012, at 10:26 AM, Andre wrote:
>
> >
> > I would like to make this more efficient by adding an attribute to the
> > DocumentBase class above, which simply does a SQL query to get the size of
> > the
> > file_object at the DB level, thinking
On Oct 5, 2012, at 10:26 AM, Andre wrote:
>
> I would like to make this more efficient by adding an attribute to the
> DocumentBase class above, which simply does a SQL query to get the size of
> the file_object at the DB level, thinking that this will not require to load
> the binary object
Hello,
I have a class that stores files in a LarbeBinary attribute, such as:
class CommonBase(object):
# Lets declare all the columns that are common to all
# tables in our database.
id = Column(Integer, primary_key=True)
...
Base = declarative_base(cls=CommonBase)
class DocumentBa