872 questions
0 votes
1 answer
59 views
Postgres sort 1-N relationship
Suppose we have a table items and properties. Users can create items and also assign user-created properties to them. For example: Items: id | name ---|-------- 1 | First 2 | Second 3 | Third ...
0 votes
3 answers
113 views
MySQL multiple EXISTS statements causes query to hang
I am implementing an entity-attribute-value model to store nationwide property data that will be updated daily: 130 million properties, will probably store billions of values. We also want to search ...
-1 votes
1 answer
199 views
Create a Mysql trigger on Update, to update another row in the same table [duplicate]
i have a table named tblcustomfieldsvalues where i want to create a trigger for updating a row in the same table, this is the table : Table screenshot The goal is to create conditions like this : if ...
0 votes
1 answer
363 views
Is Entity-Attribute-Value pattern the right approach to model this data?
To control the experimental setup user inputs the following table which defines unique parameter configurations, i.e. combinations of parameter values under which the experiments should be run. The ...
2 votes
1 answer
180 views
How to groupBy in postgres with jsonb column to mimic an EAV count table?
I have a jsonb column that looks like this: Id Data 1 {state: ["CA", "NY"], county:["Los Angeles"]} 2 {city: ["Kansas City"], zipCode: "12345"} 3 {...
1 vote
1 answer
199 views
How to correctly index fields/groups of fields in a mysql database?
I really need advice on how to properly optimize mysql database queries. I'm afraid to spoil everything at the very beginning, which will turn out to be a big headache for me later. There is a catalog ...
0 votes
1 answer
177 views
In Django, how to make a join query with matching conditions in addition to the foreign key?
We have a hand-written SQL query for proof of concept and hope to implement the function with the Django framework. Specifically, Django's QuerySet usually implements a join query by matching the ...
0 votes
0 answers
330 views
Attribute Value length Limit In Nifi
I have the requirement where I am converting the base64 Image content to attribute and after that I am preparing the payload including the base64 Image content. But the problem is while converting the ...