mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-25 19:16:19 +00:00
arreglar index
This commit is contained in:
parent
8f573150c4
commit
85cb9a27bf
1 changed files with 5 additions and 3 deletions
|
@ -10,17 +10,19 @@ export const load: PageServerLoad = async ({ setHeaders }) => {
|
||||||
WHERE relname = 'precios';
|
WHERE relname = 'precios';
|
||||||
`;
|
`;
|
||||||
// https://github.com/getsentry/sentry-javascript/discussions/8117#discussioncomment-7623605
|
// https://github.com/getsentry/sentry-javascript/discussions/8117#discussioncomment-7623605
|
||||||
const describe = await q.describe();
|
|
||||||
const count = await Sentry.startSpan(
|
const count = await Sentry.startSpan(
|
||||||
{
|
{
|
||||||
op: 'db.query',
|
op: 'db.query',
|
||||||
name: describe.string,
|
name: ` SELECT reltuples::bigint
|
||||||
|
FROM pg_catalog.pg_class
|
||||||
|
WHERE relname = 'precios';`,
|
||||||
data: { 'db.system': 'postgresql' }
|
data: { 'db.system': 'postgresql' }
|
||||||
// these properties are important if you want to utilize Queries Performance
|
// these properties are important if you want to utilize Queries Performance
|
||||||
// read more: https://docs.sentry.io/product/performance/queries/#span-eligibility
|
// read more: https://docs.sentry.io/product/performance/queries/#span-eligibility
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
} as any,
|
} as any,
|
||||||
() => q
|
async () => await q
|
||||||
);
|
);
|
||||||
|
|
||||||
setHeaders({
|
setHeaders({
|
||||||
|
|
Loading…
Reference in a new issue