A
A
Alexey Ivanov2020-05-24 19:34:05
big data
Alexey Ivanov, 2020-05-24 19:34:05

What should you use if you need to test data for an almost infinite number of conditions?

Hello everybody! In the title, I could incorrectly describe the question, but in my head I can’t even formulate the problem in one sentence, it’s probably easier with an example. The bottom line is that there is an entity that has data, for example (D - data, P - parameter)
entity1 - P1 P2 P3 P4 and for them there is D1, D2, D3, D4
but there is a user entity that wants to receive entity data1 only if its data is subject to certain conditions that it sets
so for example
user1 said give me entity1 if P1 and D1 = 1
user2: P1 and D1 = 0 AND P2 D2 = 1 OR P3 and D3 = 1
and there can be such users a lot as well as the conditions that they can set. I was told that this could be a task from the Big data area, but in which direction should I look?
Now this is implemented through RoR and the entity1 and user are simply taken there, and the data of this entity is simply run according to the user's conditions, which becomes slower and slower with an increase in users / user conditions / number of entities1. Can you please tell me how to speed up data processing and what can be used for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2020-05-24
@xmoonlight

Links are needed. You pull a parameter, you get a bunch, etc.
Each subsequent sample is from the link nodes of the previous result.

S
Sergey Gornostaev, 2020-05-24
@sergey-gornostaev

Might be worth looking at the Rete algorithm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question