let startDate = new Date(); let elapsedTime = 0; const focus = function() { startDate = new Date(); }; const blur = function() { const endDate = new Date(); const spentTime = endDate.getTime() - startDate.getTime(); elapsedTime += spentTime; }; const beforeunload = function() { const endDate = new Date(); const spentTime = endDate.getTime() - startDate.getTime(); elapsedTime += spentTime; // elapsedTime contains the time spent on page in milliseconds }; window.addEventListener('focus', focus); window.addEventListener('blur', blur); window.addEventListener('beforeunload', beforeunload);
top of page
Search

Oracle JSON

Being a Relational DB developer for years it took a while for me to adapt to JASON- (JavaScript Object Notation) when Oracle introduced

Bitmap Conversion From Rowid

Several times while checking the explain Plan, I find bitmap conversion to rowid which could slow down the performance of the query. The...

INDEX SKIP SCAN(INDEX_SS)

Prior to Oracle 9i version, if the leading column of an index wasn’t specified in a predicate, the index was effectively ignored by the...

PARALLEL_INDEX HINT

The PARALLEL_INDEX hint instructs the optimizer to use the specified number of concurrent servers to parallelize index range scans, full...

FIRST_ROWS Hint in Oracle

I shared several post on performance recently. Whenever we talk bout performance first_rows can be of significant use. On many ...

Materialized View Refreshes

Interviewers seldom miss to discuss about mv or snapshot and the refresh mechanism associated with it. While in OLTP environment, i did...

Full Table Scan in Oracle

There is a common misbelief amongst us that FTS are evil, In one of my earlier blog i tried to give some insights on FTS and leverage a...

Pragma Inline

Inlining replaces a subprogram call (to a subprogram in the same program unit) with a copy of the called subprogram. Pragma inline could...

Blog: Blog2
  • LinkedIn
  • Facebook
bottom of page