Skip to main content
0 votes
1 answer
120 views

In an application cleanup job, I need to remove all rows from a table regularly. Table: CREATE TABLE session_logs ( id BIGSERIAL PRIMARY KEY, session_id TEXT, created_at TIMESTAMPTZ, ...
Imtiaz Ghous's user avatar
-1 votes
1 answer
163 views

I am experiencing an unexpected result from the Trunc() function, due to the lack of precision of floating-point numbers, when the float value stored is just below the positive integer value: var u1, ...
Fred62's user avatar
  • 61
-2 votes
2 answers
183 views

I want to truncate a datetime(7) at different lengths - determined by parts - in SQL Server 2019 (DATETRUNC starts on 2022 *). Kind of "year-month", "year-month-day", ... up to ...
altink's user avatar
  • 375
1 vote
0 answers
20 views

I am truncating a large table - a few Terrabytes in size. To ensure that there are no locking issues, I executed the following query in another window and the results are also there. Why isn't the ...
Jayadevan's user avatar
  • 1,434
0 votes
1 answer
71 views

Do other users that have been granted permissions on that table lose them, if the table gets truncated and refreshed? I am trying to refresh data in one schema with data from different linked database....
yulduz Akhm's user avatar
0 votes
1 answer
173 views

I have a div that can contain really long text (but not always). The requirement is to limit the text to three lines and truncate with ellipses. I've got this part figured out. The second ...
gregsdennis's user avatar
  • 8,621
0 votes
2 answers
101 views

Let's say I write some amount to some file A, then I close and reopen the file using open("A", O_TRUNC | O_WRONLY);. After this, I write the same amount again. Will this be slower than a ...
Hanz Schmidt's user avatar
0 votes
2 answers
81 views

At the moment, I'm programming on a blog website where several blog posts will be listed! For the first post it's already working with the attached code snippet but unfortunately not for all the ...
BlackPanther's user avatar
2 votes
2 answers
220 views

I am dealing with ETL tasks using NiFi. I observed that flow files were flowing from begin to end. In the fact, after some processor, I handled the data already. so I want to drop or truncate the ...
Willi's user avatar
  • 407
4 votes
3 answers
125 views

Given a unknown string with an unknown size, e.g. a ScriptBlock expression or something like: $Text = @' LOREM IPSUM Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem ...
iRon's user avatar
  • 24.7k
1 vote
1 answer
80 views

We are having a performance issue with our sybase ASE database version 16.0.03.11. The TRUNCATE TABLE x PARTITION y runs for hours although the actual partition has 0 records. How does the truncate ...
Ned D's user avatar
  • 11
2 votes
1 answer
44 views

I am trying to display content where book-spine is visually centered inside of shelf. It is supposed to look like a book's spine. When book-spine is too long, it should be truncated with an ellipsis. ...
clouds's user avatar
  • 23
3 votes
2 answers
110 views

In the solution of the Pangram exercise: let totalAlphabetCount = 1 + int ('Z' - 'A') let isPangram (input: string): bool = input |> Seq.filter System.Char.IsAsciiLetter |> Seq.map ...
Jegors Čemisovs's user avatar
0 votes
0 answers
57 views

I am looking for a way to truncate a section of a file in Python, similar to how truncate() works, but instead of cutting off from the current position to the end of the file, I need to remove a ...
user23470475's user avatar
0 votes
0 answers
121 views

I am currently implementing parallel Python computation using the mpi4py package. In my code, there is a segment that uses comm.Bcast() to broadcast a list from rank0 to other ranks. However, I ...
Lin Han's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
108