Questions tagged [lag]

Lag is a common word meaning to fail to keep up or to fall behind. In real-time applications, the term is used when the application cannot keep up with performance demand or user input. In other words, it refers to when the application is not keeping up with it's "real-time" concept, due to problems related to poor rate of cycles-per-second, a (possibly cumulative) lateness of response to user input, or other problems.

Lag is a common word meaning to fail to keep up or to fall behind.

In the software context, it usually refers to when a real-time application fails to keep up with demand or input.

The most common cases of lag are:

  • The application fails to respond in a timely fashion to inputs, usually due to a slow internet connection, server latency or overworked hardware.
  • The application fails to keep a good rate of Frames-Per-Second (FPS), which is very important for media playing (mainly video) and in real-time-rendering (mainly games).

Reference and further reading: Lag - Wikipedia

2078 questions
0
votes
1 answer

I want to fill Missing value with last row value in Pyspark:

My df has multiple columns Query I tried: df=df.withColumn('Column_required',F.when(df.Column_present>1,df.Column_present).otherwise(lag(df.Column_present)) Not able to work on otherwise. . Column on which I want operation: Column_present …
Sandy
  • 163
  • 3
  • 14
0
votes
2 answers

Why does pausing stop flashvideos from lagging?

This is a more theoretical question: When I'm watching larger videos (> 15 min) on the internet via flashplayer or divx, after some minutes, the video quality begins to decrease (like the video starts lagging). When I now press the pause button and…
kohlehydrat
  • 503
  • 1
  • 3
  • 19
0
votes
1 answer

Can not fill 2 concecutive rows using dplyr lag function

I use R and R package dplyr. I want in data frame fill missing values from previous row value (increase it by 1). It works well if I have a gap of one, but if there are 2 or more consecutive missing values then I have a problem. Let say here I have…
K.I.
  • 759
  • 1
  • 11
  • 30
0
votes
0 answers

Month on Month Growth Calculation in MySQL 5.7

How can i calculate Month on Month Growth Calculation in MySQL 5.7. There is no lag function in MySQL 5.7. My DB contains is as follow Date State Value (dd/mm/yy) 1/1/2017 01 25 1/1/2017 02 35 1/2/2017 01 45 1/2/2017 02…
0
votes
0 answers

webView so laggy kotlin android

My webView started to lag so bad, when I scroll it down, it suddenly goes back to the top of the site displayed in it, and some days ago it worked perfectly. with a movement of my thumb it used to go all down to the bottom of the site with no…
0
votes
1 answer

kafka consumer java with multiple topics

we have one consumer group and three topics, all three topics are of different schema . created one consumer with a for loop passing each topic at a time and polling it processing and committing manually. Method used is consumer created common and…
sra1
  • 31
  • 2
  • 5
0
votes
1 answer

Checking the variance (or elasticity) of a variable over time in panel data

I have a panel dataset which is similar to the one below: Country Ccode Year Happiness Power ID 1 France FR 2000 1000 1000 01 2 France FR 2001 1200 1400 01 3 France FR 2000 1400 1800 02 4 France FR 2001 1600…
Tom
  • 2,173
  • 1
  • 17
  • 44
0
votes
1 answer

Interpolating missing data in a dataframe with R

I have a dataframe which is similar to the one below: Country Ccode Year Happiness Power 1 France FR 2000 1000 1000 2 France FR 2001 NA NA 3 France FR 2002 NA NA 4 France FR 2003 1600 2200 5 …
Tom
  • 2,173
  • 1
  • 17
  • 44
0
votes
2 answers

How to get consumer Kafka lag in java

I have a producer in java and consumer in nodeJS. I want to know in java what is the consumer lag, so i know if i can produce more data to the topic. What is the API in java to get the consumer lag?
0
votes
1 answer

SQL Consecutive Days - Oracle

[Data] [Emp] [Emp_group] [Date_purchase] 1 001 12-jan-2016 1 001 13-jan-2016 1 001 19-jan-2016 1 003 14-jan-2016 2 004 21-feb-2016 2 004 22-feb-2016 2 004 …
Jawahir Ak
  • 27
  • 4
0
votes
2 answers

How to implement lag function in teradata.

Input : Output : I want the output as shown in the image below. In the output image, 4 in 'behind' is evaluated as tot_cnt-tot and the subsequent numbers in 'behind', for eg: 2 is evaluated as lag(behind)-tot & as long as the 'rank' remains…
Swapnil Sudhir
  • 231
  • 1
  • 3
  • 11
0
votes
1 answer

Python GUI using os.system to run python script cause main GUI "Not Responding"

StackOverflow community. I am writing a python GUI to monitor another program's data in OSX environment and at one point I decide to click one button to open another python script that I wrote. It does work but it also causes a lag problem of the…
Peter Wang
  • 11
  • 1
0
votes
0 answers

Slow and lag javascript

I have a simple javascript program. You can move a square in it. But after a while, it start slowing and lagging. What's the problem? Why is it slow? Is this too much use of ram? I use Javascript canvas and setInterval. Or is it really out of…
0
votes
0 answers

Laravel: A lot of errors

[Mon Jul 9 20:21:19 2018] PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\Projects\shop\back-end\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 85 [Mon Jul 9 20:21:19 2018] PHP Stack…
George Valentin
  • 618
  • 1
  • 10
  • 21
0
votes
2 answers

R compare dates on next rows

I have this dataframe in R raw_payment_id from_bank_account amount posted_at 1 620691 SK660900000000062087 20.0 2018-02-25 2 618433 SK660900000000062087 …
1 2 3
99
100