Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Postgres (Supabase) SQL - Save the number of records between dates

Translated22 USD

Applications 4

Application viewing is only available registered users.
  1. 949    22  0
    1 day22 USD

    Good day .
    Databases are the main specialization. There are ideas to solve your problem.

  2. Another 2 proposals concealed
  • Vitalii Valchuk
    18 February 2024, 13:33 |
    Якщо вам не потрібен точний підрахунок, поточна статистика з таблиці каталогу pg_classможе бути достатньо хорошою, і її набагато швидше отримати для великих таблиць. 

    Воно і буде показувати не точний підрахунок. Краще вірно побудувати індекси, тоді і підрахунок буде швидким. 

  • Vitalii Valchuk
    18 February 2024, 13:37 |

    Кількість живих рядків у таблиці. Це лише оцінка, яку використовує планувальник. Вона оновлюється командами VACUUM, ANALYZE та деякими командами DDL, такими як CREATE INDEX.

  • Vitalii Valchuk
    18 February 2024, 13:38 |
    Але нам не потрібно на кожен API call робити count по usages (таблиця велика),  

    ну так зробіть таблицю, де буде пораховано на початок і при кожній вставці - оновляти дані. буде більш-меньш точно і швидко

  • Maxim M
    18 February 2024, 14:05 |

    Дякую! Тобто після створення індексів вже буде можливо робити select count(1) на кожен insert, не використовуючи count_estimate? Я так розумію, вона взагалі не підходить для даного завдання.

  • Vitalii Valchuk
    18 February 2024, 14:10 |

    можете взагалі зробити окрему таблицю зі статусами і обновляти після кожного insert дані. тобто якщо вам потрібно просто кількість користувачів зі статусом active - то вам не потрібно знати їх id, достатньо порахувати кількість, записати таблиці і в тригері додати оновлення. як варіант

  • Olexandr Basalaiev
    21 February 2024, 16:58 |

    Я бы использовал MATERIALIZED VIEW что обновляется по расписанию

Current freelance projects in the category Databases & SQL

Accounting, planning, and sales system for a mushroom farm

600 USD

Here is the complete, final text of the Technical Assignment (TA). It combines all your requirements: 16 chambers, 20 contractors, a schedule by days, accounting for containers, profitability calculation, and a mandatory division into three grades of mushrooms. You can fully…

Databases & SQLClient Management & CRM ∙ 1 day 10 hours back ∙ 51 proposals

External report 1C 8.3 — forecast of goods balances

22 USD

An external report (.erf) is needed for 1C:Enterprise 8.3 (configuration to be specified). What it should do: Extract product balances from the database Analyze sales history for the last 30 days Calculate the average sales rate for each product Determine how many days until the…

Databases & SQLClient Management & CRM ∙ 1 day 10 hours back ∙ 11 proposals

Web Application & Database Security Audit for Custom CRM — BaaS / Database-as-API Specialist (Penetr

Project Overview We operate a custom-built customer relationship management (CRM) platform that runs two service businesses on a single system. It is a modern JavaScript web application backed by a backend-as-a-service (BaaS) database and deployed on a serverless hosting…

Databases & SQLTesting & QA ∙ 1 day 23 hours back ∙ 9 proposals

Database synchronization

Synchronization of Microsoft Access programs and CRM SalesDrive. Data transfer from CRM to Microsoft Access in the first stage (changing the funnel status). Data transfer from Microsoft Access to CRM in the second stage (changing the status in the program).

Databases & SQL ∙ 2 days 4 hours back ∙ 11 proposals

Setting up a backup system and optimizing server infrastructure

Objective of the work: Ensure reliable data storage for the CRM system and application by implementing an automated backup system, as well as carry out a series of server improvements to enhance the stability, security, and performance of the infrastructure.

DevOpsDatabases & SQL ∙ 3 days 3 hours back ∙ 24 proposals

Client
Maxim M
Ukraine Kyiv  3  0
Project published
2 years back
140 views