Fixed formatting
parent
67fe669fd4
commit
166922f74a
1 changed files with 7 additions and 6 deletions
|
@ -104,24 +104,25 @@ We handle a few entity types specially.
|
||||||
|
|
||||||
* `[:db/retractAttribute e a]`:
|
* `[:db/retractAttribute e a]`:
|
||||||
|
|
||||||
We have SQLite insert into `after_search` roughly as follows:
|
We have SQLite insert into `after_search` roughly as follows:
|
||||||
```sql
|
```sql
|
||||||
INSERT INTO after_search
|
INSERT INTO after_search
|
||||||
SELECT e, a, v, value_type_tag, RETRACTED, EXACT_MATCH, rowid, v, value_type_tag
|
SELECT e, a, v, value_type_tag, RETRACTED, EXACT_MATCH, rowid, v, value_type_tag
|
||||||
FROM datoms
|
FROM datoms
|
||||||
WHERE e = :e AND a = :a
|
WHERE e = :e AND a = :a
|
||||||
```
|
```
|
||||||
|
|
||||||
* `[:db/retractEntity e]`:
|
* `[:db/retractEntity e]`:
|
||||||
|
|
||||||
We have SQLite insert into `after_search` as follows:
|
We have SQLite insert into `after_search` as follows:
|
||||||
```sql
|
```sql
|
||||||
INSERT INTO after_search
|
INSERT INTO after_search
|
||||||
SELECT e, a, v, value_type_tag, RETRACTED, EXACT_MATCH, rowid, v, value_type_tag
|
SELECT e, a, v, value_type_tag, RETRACTED, EXACT_MATCH, rowid, v, value_type_tag
|
||||||
FROM datoms
|
FROM datoms
|
||||||
WHERE e = :e OR (v = :e AND value_type_tag = REF)
|
WHERE e = :e OR (v = :e AND value_type_tag = REF)
|
||||||
```
|
```
|
||||||
It would be possible to generalize the search step above to do this search as part of the main search, but it's likely to be less efficient.
|
|
||||||
|
It would be possible to generalize the search step above to do this search as part of the main search, but it's likely to be less efficient.
|
||||||
|
|
||||||
## Updating the transactions and datoms tables
|
## Updating the transactions and datoms tables
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue