Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-343

Optimize the SDG implementation of CrudRepository.save(Iterable<S> enttiies) to use GemFire's Region.putAll(Map<K, V> values) operation.

    XMLWordPrintable

    Details

      Description

      Currently, the SDC CrudRepository.save(Iterable<S> entities) persistence operation backed by SDG's SimpleGemfireRepository.save(Iterable<U> entities) method internally iterates over all the entities and "saves" them 1-by-1 delegating to the SimpleGemfireRepository.save(U entity) method, which in turn delegates to the GemfireTemplate.put(K, V) method using the GemFire Region.put(K, V) operation.

      Instead of iterating over the entities and calling save(U entity) individually for each entity, the method could build a mapping of entities and call the GemfireTemplate.putAll(:Map<K, V>) method directly which results in GemFire's Region.putAll(:Map<K, V>) method being used, thereby improving performance.

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            Trevor Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0.25d
                0.25d
                Logged:
                Time Spent - Not Specified
                Not Specified