M
M
mikkiecutcopy2016-11-02 19:01:26
PostgreSQL
mikkiecutcopy, 2016-11-02 19:01:26

How to make a lot of SQL queries to the result of selecting one?

Actually, we need several queries that minimally filter data from one large query. Sending it to the database with every request is pointless, VIEW simply encapsulates the code and runs the request in the same way when it is applied. There is no desire to write crutches at the application level. What can be done and is it worth bothering with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2016-11-02
@romy4

save it to a temp table and use it as many times as you like until the connection is closed

K
Kirill Boldyrev, 2016-11-02
@usetester

Maybe MATERIALIZED VIEW will do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question