Answer the question
In order to leave comments, you need to log in
How to create the illusion of deletion with rt_index?
There is one disk index disc_index and another realtime index rt_index. Their fields and field types are the same. I connected them like this under one commonIndex index:
index commonIndex
{
type = distributed
local = disc_index
local = rt_index
}
INSERT INTO rt_index values (100,'text');
SELECT * FROM common_index ORDER BY id DESC
INSERT INTO rt_index values (55,'text was updated');
SELECT * FROM common_index ORDER BY id DESC
UPDATE rt_index SET id=55, text='text was updated another time';
select * from common_index where deleted=0 order by id desc
UPDATE rt_index SET deleted=0 WHERE id=55;
select * from common_index where deleted=0 order by id desc
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question