Questions tagged [batching]
193 questions
4
votes
2 answers
Batching actions in redux-saga
I read at https://react-redux.js.org/api/batch that one can use batch "to ensure that multiple actions dispatched outside of React only result in a single render update", like this (which I use in React event handler i.e.):
...
const submitData =…

user1665355
- 3,324
- 8
- 44
- 84
4
votes
2 answers
Is it logical to loop on model.fit in Keras?
Is it logical to do as below in Keras in order not to run out of memory?
for path in ['xaa', 'xab', 'xac', 'xad']:
x_train, y_train = prepare_data(path)
model.fit(x_train, y_train, batch_size=50, epochs=20,…
user9459060
4
votes
3 answers
Hibernate: Why should I manually flush() even if I set batch_size in configuration file?
I'm learning to use java's hibernate 5.2.10. I started with a few tutorials online but faced the following question.
When using batching, all the tutorials I have seen first set the hibernate.jdbc.batch_size in the configuration file. After that the…

Said A. Sryheni
- 697
- 1
- 9
- 29
4
votes
2 answers
Why is NHibernate refusing to batch inserts?
Using NHibernate 2.1.2.4000 against SQL Server 2008. The target table has no triggers or extraneous indexes. It is simply:
create table LogEntries (
Id INT IDENTITY NOT NULL,
HostName NVARCHAR(32) not null,
UserName NVARCHAR(64) not null,
…

Kent Boogaart
- 175,602
- 35
- 392
- 393
4
votes
0 answers
Hibernate : is batching disabled for single table inheritance?
Problem
I found out that hibernate's batching does not work for the following two classes while calling StatelessSession#insert(). (i.e. Prepared statements have been created for each call).
Parent Entity
@Entity
@Table(name =…

Milos Gregor
- 940
- 8
- 14
4
votes
1 answer
Does polymorphism interfere with NHibernate's batch insert/update capabilities?
I have a class structure like so:
public class Person
{
public virtual int Id { get; protected internal set; }
public virtual string Name { get; set; }
}
public class Customer : Person
{
public virtual string AccountNumber { get; set;…

Aaronaught
- 120,909
- 25
- 266
- 342
3
votes
1 answer
Set color for the whole mesh but not every vertex
I want to optimize size of vertex buffer. Currently my layout for VBO is:
x y | r g b a
It's consumed by shader like this:
struct VertexInput {
@location(0) position: vec2,
@location(1) color: vec4,
}
And I'm storing mesh in buffer…

FoxPro
- 2,054
- 4
- 11
- 34
3
votes
2 answers
Kotlin: Split Sequence by N items into Sequence>?
How to "take(N)" iteratively - get a Sequence, each inner sequences having next N elements?
I am writing a high-load application in Kotlin.
I have tens of thousands of entries to insert to a database.
I want to batch them by, say, 1000.
So…

Ondra Žižka
- 43,948
- 41
- 217
- 277
3
votes
0 answers
URP Lit Shader breaks Static Batching
I'm using Static Batching to reduce Draw Calls, having the same material for the most part of the meshes rendered in the scene. I've also set the Static flag to true in all of these GameObjects, and so on the Static flag in the Player Settings. In…

JTorrentQuasar
- 31
- 1
3
votes
1 answer
How to get a list of Job Batches in Laravel 8
Laravel 8 introduced Job Batching, which allows to execute jobs in batches and perform actions on batch completion.
The feature itself seems very useful, and it even has an Illuminate\Bus\Batch instance, which allows to inspect and interact with the…

Yerke
- 2,187
- 3
- 19
- 33
3
votes
3 answers
Batching very large text file in python
I am trying to batch a very large text file (approximately 150 gigabytes) into several smaller text files (approximately 10 gigabytes).
My general process will be:
# iterate over file one line at a time
# accumulate batch as string
--> # given a…

Mason Edmison
- 594
- 3
- 16
3
votes
2 answers
Batching data before passing through the pipeline
I have a bunch of fileshares with many millions of files/folders on them. I am using gci -Recurse to get a full list of directories/files on the share, and I need to load several pieces of information from that gci into SQL server for additional…

Matthew
- 1,096
- 7
- 12
3
votes
0 answers
Tensorflow Serving client-side batching
Python: 3.6.6
Tensorflow: 1.10.0
Tensorflow-Serving: 1.10.0
I've seen multiple examples (like How to do batching in Tensorflow Serving?) that resolve this issue with something like the following code:
# Create Stub
channel =…

Alex
- 128
- 14
3
votes
2 answers
JDBC Batch insert into Oracle Not working
I'm using JDBC's batch to inserting a million of rows. I was faced with that Oracle driver doesn't work as expected - batch insert takes a long time to work.
I have decided to sniff application's traffic with Wireshark. And what did I see?
Oracle…

referee
- 106
- 3
- 9
3
votes
1 answer
Processing parallel HTTP requests in batches in Node.js using async
I have code that is structured roughly as follows:
readLine.on('line', function (line) {
async.parallel([
function (callback) {
// HTTP request #1 sent with accompanied JSON, get JSON as result
},
function (callback) {
…
user5835083