D
D
Danila NV2019-07-20 13:15:54
Database design
Danila NV, 2019-07-20 13:15:54

DB for data saving without UPDATE and DELETE with selection on the indexed field?

You need to select a database to which records of the following format will be written:

Time: DateTime
K: float16
TypeId: smallint (8 бит)
ExternalKeyId: long

Approximately 20 million records per day and more.
TypeId and ExternalKeyId are keys that are stored in another database.
It turns out that in a DB there will be quite a lot of records. The main requirement: data sampling by the ExternalKeyId field should work quickly. A query like
SELECT * FROM Table WHERE ExternalKeyId = ?
At a time returns from 15 to 1000 or more records, but there are many queries. Complex analytical queries are not planned.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-07-20
@dimonchik2013

Clickhouse
only sampling learn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question