Hi,

many thanks for advice. I did research and found some materials about this
topic, so will study little bit.

Jano


On Tue, Apr 23, 2019 at 12:18 PM Simon King <si...@simonking.org.uk> wrote:

> I think you need to consider the transactional behaviour of your
> application. Remember that if your application crashes (or more
> specifically, if a DB connection is unexpectedly closed), anything
> that has not been committed will be lost.
>
> It is possible for one connection to see data from another connection
> before it has been committed, by changing the transaction isolation
> level of the connections. See your DB's documentation for details.
>
> The answers to these questions tend to be application-specific. I
> don't think it's possible to give advice that will be correct in every
> situation.
>
> It's possible that you are looking for something more like a message
> queue. Databases can be used as message queues, but you need to
> understand the implications if you are going to do that.
>
> Simon
>
> On Tue, Apr 23, 2019 at 10:53 AM Jan Sakalos <sakal...@gmail.com> wrote:
> >
> > Hi,
> >
> > API will add rows to table and main loop will have to read them.
> >
> > Meanwhile i found out following
> >
> > ses.commit() will have this effect, but maybe there is more
> straightforward  command.
> >
> > As suggested in documentation, session should not live for so long so
> maybe it is more suitable to use new session every run (there will be min
> 10s sleep).
> >
> > But not sure if any of this is good approach, also i am in doubt if API
> writing directly to db is correct approach, but now it is not critical for
> so i will do some more searching on this topic later.
> >
> > Whats your opinion on this?
> >
> > Thanks,
> > Jano
> >
> >
> > On Tue, Apr 23, 2019 at 10:17 AM Simon King <si...@simonking.org.uk>
> wrote:
> >>
> >> On Mon, Apr 22, 2019 at 5:09 PM Jan Sakalos <sakal...@gmail.com> wrote:
> >> >
> >> > Hello,
> >> >
> >> > How to reload data from table/all tables using sqlalchemy ORM?
> >> >
> >> > Thanks
> >> > Jano
> >> >
> >>
> >> Hi,
> >>
> >> Can you explain what you mean by "reload data"?
> >>
> >> Thanks,
> >>
> >> Simon
> >>
> >> --
> >> SQLAlchemy -
> >> The Python SQL Toolkit and Object Relational Mapper
> >>
> >> http://www.sqlalchemy.org/
> >>
> >> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example.  See  http://stackoverflow.com/help/mcve for a full
> description.
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups "sqlalchemy" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to sqlalchemy+unsubscr...@googlegroups.com.
> >> To post to this group, send email to sqlalchemy@googlegroups.com.
> >> Visit this group at https://groups.google.com/group/sqlalchemy.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > SQLAlchemy -
> > The Python SQL Toolkit and Object Relational Mapper
> >
> > http://www.sqlalchemy.org/
> >
> > To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> > ---
> > You received this message because you are subscribed to the Google
> Groups "sqlalchemy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sqlalchemy+unsubscr...@googlegroups.com.
> > To post to this group, send email to sqlalchemy@googlegroups.com.
> > Visit this group at https://groups.google.com/group/sqlalchemy.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example.  See  http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to