Monsieur Wholesome
Improving performance / caching
Of course, you can scatter information about the existence of a file around the table, but it can and will in the long run hurt integrity
Things will get lost, files will be deleted, and various tables need to be updated extensively
61 replies
Improving performance / caching
https://www.microsoft.com/en-us/research/publication/to-blob-or-not-to-blob-large-object-storage-in-a-database-or-a-filesystem/?from=https://research.microsoft.com/apps/pubs/default.aspx?id=64525&type=exact
Is a good research paper talking about disk (blob storage being just one way of saving a file on a disk) vs database storage of files
61 replies
EF Core - Where clause on multiple field in object list
I can think of two ways
1 (Slow, not really nice):
If its a small list of
lignesClients
of like 2 - 5 elements, you could build Expressions at runtime that will basically become
2 (Fast, pretty cool, yo!):
Hoping that your lignesClients
is an IEnumerable (or array or list) that comes from an IQueryable query, and making sure it stays an IQueryable, so that you can make it a sub-query within your query here with what @ZZZZZZZZZZZZZZZZZZZZZZZZZ suggested, which should translate into something like
23 replies
EF Core - Where clause on multiple field in object list
Ofc you can do it with ints, strings and what not, but not with a complex type where 1 element consists of 3 columns / properties
Edit:
Though with SQL Server json columns and json functions (OPENJSON() and stuff) it could with some black magic be possible maybe, though I imagine not
23 replies