Can anyone help me with this interesting (to me) relationship definition in
sqla.
I have some already defined data, not by me, that has, for each user, a
foreign table of contact numbers, where the highest contact number is the
one to use.
For example, users:
Harry, 1081, and Bob 1082
Thanks for the reply Mike. The explanation is somewhat as expected.
Based on this, to keep things simple and being bone lazy, I switched the
the 'redis' backend, whose locking is outside of the process and works 100%
with multiple threads out of the box.
--
You received this message because
I have some costly aggregations (they take a minute) and I am firing off
the aggregations in a separate thread and want to use the dogpile lock so
that the client will receive the 'recent' data while the aggregation is
occurring in the background.
Using flask and sqla (as usual, sqla rocks, as
So anyone else who asks this knows, the following works:
A query with just a column:
qq = session.query(Configuration.name)
Normally I would loop, but in this case, taking just the first column:
yy = qq.column_descriptions[0]['expr']
yy.expression.table.name
gives: ''configurations”
If the query does not have a table in it we don't get the tables.
For example, the following simple query gets a list of connection_strings
column from the Connection table:
aa = session.query(Connection.connection_string)
aa.column_descriptions
[{'aliased': False,
'expr':
We are using the sharding module included in our application.
Currently we are selecting shards based on field. This works really well,
as the field that gets hashed to select the shard needs to be migrated to
the other tables that exist only in that shard.
Now we would like to have